News for hackers. Stuff that matters.
Re:Writing Iterators in Julia 0.7 by abakus on Friday July 06, 2018 @01:57PM (#17473616)
Code with a mix of Y%#$ and lower_UPPER_CamelCase looks ugly.
Re:Writing Iterators in Julia 0.7 by sbjs on Friday July 06, 2018 @02:06PM (#17473704)
Every language looks ugly to someone who doesn't need it ;)

I have learned to ignore the inconsistencies in the languages that I have to use, especially if it's for a paying gig. Otherwise I would go crazy! Every single language has them, I'm not kidding.

Re:Writing Iterators in Julia 0.7 by s-shellfish on Friday July 06, 2018 @07:46PM (#17475982)
That's a nice practice
Re:Writing Iterators in Julia 0.7 by jey on Friday July 06, 2018 @03:18PM (#17474321)
The naming conventions are all very sensible, but I can see how it looks funny if you aren't fluent in Julia.
Re:Writing Iterators in Julia 0.7 by dnautics on Friday July 06, 2018 @04:03PM (#17474665)
In case anyone doesn't know, the Julia convention is:

UpperCamelCase: modules & types

snake_case: variables and functions

This convention is shared, for example, with elixir (also FP Lang)

Also bang_functions! By convention, not enforced, indicate that the function may mutate one of its passed parameters. (Taken from Ruby's "be careful with this member function" idiom)

@at_sigil: macros (enforced by the language)

Re:Writing Iterators in Julia 0.7 by simen on Friday July 06, 2018 @07:03PM (#17475787)
Ruby uses the same convention. (excluding macros, and adding question_mark_predicates?) I've seen C++ projects that adopt the same style. I don't see what's so objectionable about it.
Re:Writing Iterators in Julia 0.7 by idunning on Friday July 06, 2018 @06:03PM (#17475465)
Its also very similar to many opinionated Python style guides (minus the !, and where @ is used for decorators [which are a bit meta like macros])
Re:Writing Iterators in Julia 0.7 by ellisv on Friday July 06, 2018 @02:52PM (#17474143)
Just wait until you see Julia's unicode input - you can use pretty emojis instead of ugly "Y%#$ and lower_UPPER_CamelCase"!
Re:Writing Iterators in Julia 0.7 by invmatth on Friday July 06, 2018 @02:38PM (#17474028)
Fairly subjective, it is easily readable at least.
Re:Writing Iterators in Julia 0.7 by tejtm on Friday July 06, 2018 @02:14PM (#17473782)
Less so when you see strongly typed system which _you_ authored which is every bit as native as the 'Native' type system we sometimes wish other languages we use in practice had at all.
Re:Writing Iterators in Julia 0.7 by JadeNB on Friday July 06, 2018 @03:49PM (#17474562)
> Code with a mix of Y%#$ and lower_UPPER_CamelCase looks ugly.

What is Y%#$?

Re:Writing Iterators in Julia 0.7 by simonbyrne on Friday July 06, 2018 @05:31PM (#17475295)
Well, in Julia it's an incomplete expression (Y is a variable, % is the infix operator for remainder, and # a line comment (the $ is used for string/command interpolation, but is commented out).
Re:Writing Iterators in Julia 0.7 by JadeNB on Saturday July 07, 2018 @09:40AM (#17478451)
Given that some of the characters in the original were italicised, I think that there were probably some stars in there that Markdown ate. My question wasn't really what operation it performs or tries to perform, but rather what abakus (https://news.ycombinator.com/item?id=17473616) meant by comparison with lower_UPPER_CamelCase.