17 ms·
Personal logic bugfix: if ( thisLooksLikeJavaOrJavaScriptOr/* ... */ ) { youLikeCamelCase = true; votePoll( camelCaseFormatting );
by insin 12y ago
Personal logic bugfix:
if ( thisLooksLikeJavaOrJavaScriptOr/* ... */ )
{
youLikeCamelCase = true;
votePoll( camelCaseFormatting );
}
else if ( this_looks_like_python )
{
you_like_underscores = true;
vote_poll( underscore_formatting );
}
Variable assignments for this particular piece of code:
thisLooksLikeJavaOrJavaScriptOr/* ... */ = true;
this_looks_like_python = false;
- hga 12y ago(define this-looks-the-best_To-Me true) (if this-looks-the-best_To-Me (do (setq you-like-flexibility true) (vote-poll :lisp-formatting))) If you follow the normal Lisp pattern of mostly one case and '-' for separation, allowed because Lisps/s-expressions allow the use of the normally reserved '-', I think you get the clearest code. See Clojure for a Lisp that breaks up the sea of Lots of Irritating Sets of Parenthesis if that bothers you.