@OndrejMirtes The syntax is confusing but 'declare(tick=n) {...}` runs the body of the statement for the current block every n tickable statements. A function is a block so on the first tick it will call return for the function inself.
@ryangjchandler Yes. If it's a static variable, there's no reason for it to be a string. If it's a variable and intentional, people should at list cast the string to int.
@heychazza@ryangjchandler Json is a data transfer format, not a config friendly one, the lack of comments in configuration files is a huge miss, imo.
Yaml has a few quirks around implicit value conversion that make it really annoying for configuration files: https://t.co/OoUKs9bb88
@sky_0xs@enunomaduro 👍 Php has a DIRECTORY_SEPARATOR variable you can use. If you detect where the path is, you can open a PR for the upstream dependency.
@calebporzio Looks interesting but you'll have issues with complex grouping imo.
I.e. (Cond1 && Cond2) || Cond3
You'll probably end up with using special chainable functions accepting callbacks which defeats the original intention (readability).
If you add 'and' people will expect 'or' too
@nuernberger_me@calebporzio In the screenshot above is what "and" does, I think. It flags that the next check is the final one and must return the boolean value.
Look at the last example, all other conditions don't use it but they are still evaluated as &&
Web developers, I have big news! Safari 15.4 is here, packed with 70+ new features — lazy loading, dialog, :has(), Cascade Layers, svh/lvh/dvh, focus-visible, accent-color, display: contents fix, scroll-behavior, Manifest icons, BroadcastChannel & more: https://t.co/01uGlNVE5Z
@sebastienlorber Unfortunately :has is hardly supported by any browser otherwise you would just define css variables, override them in your has selector and use var(--whatever) in the rest of your file
@VittoStack@MatthiasLischka It's not opinionated, it reports a fact. You can't just accuse other people to be opinionated because you don't have a techical argument, lol. Btw, just keep the tweet but the real use case for bitwise operators is when you use bitmasks.
@VittoStack@MatthiasLischka Simply it's not a round (nor a floor). The original tweet is not accurate and teaches bad practices to junior devs (they won't read all comments). You should probably delete it but you won't because of the high number of interactions, :).
@enunomaduro Notbsure, it's really popular but it's conceptually wrong, each chainable method shouldn't rely on a different one to be called first. In your example `->seconds()` by itself is syntactically right but semantically wrong. `->move('10 seconds')` would be a good api, imo.