logoalt Hacker News

cxryesterday at 8:18 PM4 repliesview on HN

It wouldn't fix the issue of semantics, but "language skins"[1][2] are an underexplored area of programming language development.

People go through all this effort to separate parsing and lexing, but never exploit the ability to just plug in a different lexer that allows for e.g. "{" and "}" tokens instead of "then" and "end", or vice versa.

1. <https://hn.algolia.com/?type=comment&prefix=true&query=cxr%2...>

2. <https://old.reddit.com/r/Oberon/comments/1pcmw8n/is_this_sac...>


Replies

nine_kyesterday at 8:33 PM

Not "never exploit"; Reason and BuckleScript are examples of different "language skins" for OCaml.

The problem with "skins" is that they create variety where people strive for uniformity to lower the cognitive load. OTOH transparent switching between skins (about as easy as changing the tab sizes) would alleviate that.

show 3 replies
rao-vyesterday at 9:48 PM

One day Brython (python with braces allowing copy paste code to autoindent) will be well supported by LSPs and world peace will ensure

show 1 reply
kevin_thibedeauyesterday at 10:15 PM

VB.Net is mostly a reskin of C# with a few extras to smooth the transition from VB.

procaryoteyesterday at 9:47 PM

Lowering the barrier to create your own syntax seems like a bad thing though. C.f. perl.