4 ms·
I'll make the easiest criticism and just say that if you're building something with a stated goal of being "syntactic sugar", their hello world example is god a
by airstrike 5y ago
I'll make the easiest criticism and just say that if you're building something with a stated goal of being "syntactic sugar", their hello world example is god awful...
From the README:
.html {
.head {
.title {
text: A simple Hello World example;
};
};
.body {
.div {
text: Hello world;
};
};
};
Just off the top of my head, compare that with Haml and let me know which one you'd rather type:
%html
%head
%title
A simple Hello World example
%body
#somedivid
Hello world
...and that's assuming you couldn't replace Haml's %s with .s to match Nazca
- HelloNurse 5y agoIt seems a case of JSON addiction, or even (since there are semicolons) JavaScript addiction.
- WorldMaker 5y agoGiven the later examples it almost seems like trying to merge everything into CSS syntax, but then the selectors don't make any sense (.html rather than html?) and yeah the way too many semicolons also doesn't make any sense (why do you need semicolons at the end of {} blocks? I can't think of any language that does that).
- tedmiston 5y agoI literally looked at the hello world examples, asked myself "what is this conflated mess?" and scratched my head. Maybe I'm just old or missing something here. ¯\_(ツ)_/¯
- Apofis 5y agoIf anybody ever wanted HTML and JS in their CSS files instead, then nazca is definitely for you.
- deleted 5y ago[deleted]
- nielsbot 5y agoOne of the great aspects of HAML is that there are no closing tags/delimiters. Requiring enclosing braces and semicolons after every line are unfortunate choices IMO.
- zamadatix 5y agoSeems very much like invoking the age old YAML vs JSON debate. You may be surprised what some others prefer.