Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

My main gripes with rescript (constructive criticism)

$
0
0

thanks,

not really, i often have stuff like

@module("x") extern f1: t1 => t2 = "abc"

@module("x") extern f2: t1 => t2 = "abc"

@module("x") extern f3: t1 => t2 = "abc"

@module("x") extern f4: t1 => t2 = "abc"

and the formatter absolutely mangles it into something like:

@module("x") extern f1: t1 => t2 =
  "abc"

@module("x")
extern f2: t1 => t2 = "abc"

@module("x")
extern f3: t1 => t2 =
  "abc"

@module("x") extern f4: t1 => t2 = "abc"

because the type names/extern names are of quite varying length. even though they are “too long” here, i know it would be easier to read if they were all kept on a single line because it’s a repated pattern. in files with 30-40 externs, this becomes an absolute mess.


Viewing all articles
Browse latest Browse all 2592

Trending Articles