-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Partial application overload for binary signature methods #53
Comments
:D hah.. you forgot to remove one in your example 😂 Hmm.. Tbh. I'm leaning more towards nesting using css syntax like @fuzetsu suggested (inside the template string) instead of having that ugly $nest function. I think it would feel natural :) What do you think @barneycarroll ? Although that chained template string thing is crazy 😃 Example for reference:
|
😮 It didn't even occur to me that chaining tagged template strings would work, although it makes perfect sense. @porsager I've really been enjoying keeping all the styles inside of the single template string. Plays more nicely with code formatters, and I feel like it's easier to scan quickly. 👍 |
@barneycarroll hehe sure, I was talking about the last parenthesis in your chained template string example ;) About how to make that work with a nested block i don't think there'd be ambiguity, but it might be hard to get the parsing right. If it seems weird to have a free comma there I guess the
@fuzetsu oh I see, you have more nest usage there than I usually have so it's even nicer by a bigger factor 😃 |
Comparing |
@barneycarroll I think Rasmus is referring to my bss inspired lib zaftig. Not really a proposal or anything, but I re-implemented most of the behavior I liked from bss, while exploring some slightly different API options, mainly focusing in on template strings, and emulating some css pre-processor-like behavior. This file gives a decent idea of what the syntax looks like, and this is what it looks like running. @porsager I've found that my usage of nested styles has increased with zaftig. Since it's a bit easier to throw in. Like in a couple scenarios in that code I linked I had a style that was shared between two elements only in this one component, and they weren't in a loop. So instead of creating the style outside, caching it and then using it for both, I just use a nested style. @osban Can you think of any alternatives? I think the advantages of braces are familiarity, and that they express a scope of sorts, like in JS. But it does feels a bit weird sometimes for short inline ones, otherwise I've been happy with it. |
@fuzetsu Hmm, what about something like |
IMO it'd be useful to reuse whatever other CSS tools are using, which I believe are essentially |
Version 3* is just around the corner with a complete overhaul which i believe will give you what you're after ;) Stay tuned.... version 2 got skipped because of a discovery I made recently :P |
HEY! :D
As you may know, I dislike parentheses. Therefore this displeases me:
But what about...
Isn't that first line some of the tastiest punctuation soup you've ever seen? :D
The text was updated successfully, but these errors were encountered: