Closed Akiyamka closed 3 weeks ago
Yes the syntax is overkill for this super simple surrealistic example. I put it there to showcase how it works in objects, later meant to be used as class/object properties in which you don't know when and where the function is going to be called.
Prerequisites
Versions
not related
A minimal reproducible example
https://stackoverflow.com/help/minimal-reproducible-example.
Description
not related
Steps to Reproduce
not related
Expected Behavior
instead of
you can write just