One small decorator thing I'd like to see in (sans the '.') is a way to alias:

color ∷ Int → Int → Int → String
color = …

Seeing the colour, behaviour, canceller, analyser all look jarring in my code base, but leads to unnecessary 'typos'.

Having seen a former coworker get issues in CSS because he used "colour" was funny for me, but ultimately frustrating and dubious. Supporting localized variable names would make the code feel a bit more like home, while remaining compatibly and easy to maintain with a simple @ sigil.

Erlang supports both keywords behavior and behaviour which is nice. Choose your flavor. Heck, localize it to other languages too…

@.colour, kolor, สี …

Sign in to participate in the conversation

Cybrespace is an instance of Mastodon, a social network based on open web protocols and free, open-source software. It is decentralized like e-mail.