Patchouli's Computatrunomicon

Search IconIcon to open search

syntactic sugar

Last updated June 5, 2022.

# Metadata

2022-06-04 19:11 | syntactic sugar | Doriel Rivalet

# Content

reminder for methods: readability, scalability, and maintainability

 If you write the following code:

1
number = 2 + 3 * 4

Then Ruby will translate this to the following:

1
number = 2.+(3.*(4))

syntactic sugar improves readability

# Sources

Own notes

https://en.wikipedia.org/wiki/Syntactic_sugar

http://ruby-for-beginners.rubymonstas.org/operators/methods.html

# Content Lists

If you prefer browsing the contents of this site through a list instead of a graph, you can find content lists here too:

# Knowledge Index


Interactive Graph