ozra / onyx-lang

The Onyx Programming Language
Other
95 stars 5 forks source link

Tool: Stylizer / Formatter #93

Open ozra opened 7 years ago

ozra commented 7 years ago

The importance of this tool as integral to the development experience in Onyx has been there since the inception.

About time it's issued.

The purpose of the stylizer is just the same as astyle, etc., for C++, (and the formatter for Crystal - but it has no configurability, only a "one world order" style) - namely: formatting the source code according to preferences.

The idiomatic way of working with an Onyx project is intended to be as follows:

The styling chosen is always based on rules, thus no esoteric formatting can ever be "kept" through the styling process. It must be completely symmetric and deterministic.

So, what should be configurable for starters?

This tool is important. Also for the development of Onyx itself (see #4). It makes it possible to quickly compare different variations of Onyx (even generate randomized conf and style with, for kicks and examination), and thus makes it simpler to see what's wrong / should be ditched / changed in the syntax and settle the language faster.

I therefore think this is a highly urgent part of the developement process of Onyx.