Live data from Hacker News

CSS now has an if() conditional function

caniuse.com

81–90 of 245 posts

Re: CSS now has an if() conditional function

#84
post #42

Give it enough time, every declarative language becomes a programming language. This is happening with all config files, markup languages, data formats. The distinction between code, config and data is being erased. Everything is a soup now. Data is application, configuration is code. Code is an intermediate, volatile thing that is generated on the fly and executed in the temporary lambda containers.

You have to give it to CSS, it's held out for a lot longer than most.

Re: CSS now has an if() conditional function

#86

Earlier quoted context omitted.

- Visual Studio project files are XML files that are interpreted line by line, and can contain variables, branches, and loops. Hell on earth.

Horrible. Would’ve been much nicer if they’d reached for Scheme.

You say that, but people in OCaml keep bemoaning the use of mostly declarative s-expressions in the Dune build system. Imagine the reaction if MSBuild used an actual Scheme.

Re: CSS now has an if() conditional function

#87
post #42

Give it enough time, every declarative language becomes a programming language. This is happening with all config files, markup languages, data formats. The distinction between code, config and data is being erased. Everything is a soup now. Data is application, configuration is code. Code is an intermediate, volatile thing that is generated on the fly and executed in the temporary lambda containers.

So why do people still design declarative languages?

OP is not being very precise (and in a way that I don't think is helpful). There is nothing imperative in an if expression. Declarative languages can be Turing complete. Declarative languages are a subset of programming languages.

Re: CSS now has an if() conditional function

#90
post #52

Earlier quoted context omitted.

Replying to myself (hey, I like myself and I'd like to have a conversation with me): CSS doesn't have it right? Just Chrome. Considering how all kinds of "experts" have started to make web sites that only work fine in Chrome [1], this is not exactly a useful new feature, more like embrace and extend... [1] Orange Romania, when will I be able to download my invoices again in Firefox?

It's in the draft spec for the CSS Values and Units Module Level 5 ( https://drafts.csswg.org/css-values-5/#if-notation ) I don't see Mozilla's or WebKit's positions anywhere, so this is a Chromium-only feature for now.

Curiously, Can I Use says:

> All major browser engines are working on implementing this spec.

However their official positions are absent:

https://github.com/mozilla/standards-positions/issues/1167

https://github.com/WebKit/standards-positions/issues/453

And Firefox’s bug for implementing it has no activity:

https://bugzilla.mozilla.org/show_bug.cgi?id=1981485

And Can I Use’s underlying data doesn’t have this note:

https://github.com/Fyrd/caniuse/blob/fedfb067aceccb2a5edadcc...

So it’s unclear why the Can I Use website is saying that everybody is working on it.

Post reply on HN