so it looks like, most #haskell code use camelCase normally, but sometimes snake_case. correct?

been obsessing about camelCase vs snake_case for years. still no conclusion. scientifically, by pop, by ease of typing... no conclusion. most existing lang conventions are idiotic. their formation is pretty much historical. Not by any logical basis.

there are a couple of somewhat scientific studies on camelCase vs snake_case on accuracy or speed of recognization. But is inconclusive.
if there is any common practice across languages, it is that, StudCamelCase is usually for class names, while snake_case for variables.



Nim is awesome that way; it's style insensitive. You can import a library that has a function awesomeFunction, but use that function as awesome_function in your code.

> only the first letters are compared in a case sensitive manner. Other letters are compared case insensitively within the ASCII range and underscores are ignored.

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either! We adhere to an adapted version of the TootCat Code of Conduct and follow the Toot Café list of blocked instances. Ash is the admin and is supported by Fuzzface, Brian!, and Daniel Glus as moderators. Hosting costs are largely covered by our generous supporters on Patreon – thanks for all the help!