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 class="kwd">else "Good afternoon"</span>
<span class="kwd">end</span>

Continue reading

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 LLVM Liberty Eiffel backend. For real, this time 😃

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 that’s better to use the ternary operator.

 

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). […]

Sorgente: Bertrand Meyer’s technology+ blog » Blog Archive Before I start screaming once again… – Bertrand Meyer’s technology+ blog

Wow. That’s a constructive way to criticize 🙂

Continue reading