Paolo Redaelli personal blog

Category: Eiffel

Eiffel’s conditional expressions

The ternary conditional operator is a short-hand method for writing an if/else statement. Does Python Have a Ternary Conditional Operator? Yes, it does. This remids me that Eiffel, at least “ISE Eiffel” does actually have conditional expressions that are the same: <span class="kwd">answer := if</span><span class="pln"> time < noon </span><span class="kwd">then</span> <span class="str">"Good morning"</span> <span…

Single header C++ WASM binary writer (with linking/reloc support): https://t.co/Jq44aiwNRt as part of the Lobster WASM backend: https://t.co/zsC6UJRiYQ — Wouter van Oortmerssen (@wvo) June 27, 2019 Single header C++ WASM binary writer (with linking/reloc support): (link: https://github.com/aardappel/lobster/blob/master/dev/src/lobster/wasm_binary_writer.h) github.com/aardappel/lobs… as part of the Lobster WASM backend: (link: http://aardappel.github.io/lobster/implementation_wasm.html) aardappel.github.io/lobster Time is ripe to start implementing an…

Conditional JavaScript for Experts – Hacker Noon

Mastery of conditional expressions for cleaner codes They say in Conditional JavaScript for Experts – Hacker Noon. What they are suggesting is to use side-effects of  “expression”, as Javascript does not separate commands and queries. Call me dogmatic but this behavior to look like a fundamental ingredient for disaster. In fact the same article says…

To allow or not to allow?

… at my would-be coauthors, would someone please tell them, and every non-native-English-speaker-but-aspiring-English-author, to read this? Please, please, please, please, please. In English the verb “allow” cannot take an infinitive as a complement. Ever. You may not write “my method allows to improve productivity” (even if it’s true, which it probably isn’t, but never mind).…