question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A way to specify whether a list should use commas or spaces.

See original GitHub issue

Per https://github.com/seanCodes/bootstrap-less-port/pull/13#discussion_r239613779

Currently, when pulling out all arguments as a list (using ...), the list is space-separated. It’d be nice to have a function that could force using a comma or force using a specified delimiter when outputting.

If this isn’t suited to core Less, I could use some help understanding the best way to do this with a plugin.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
matthew-deancommented, Dec 7, 2018

@seven-phases-max

Just to clarify - Less does not of course actually decide anything here (the behaviour is solely decided by the input code itself - not by the compiler). I.e. essentially it’s just a fundamental flaw of the particular pattern (“using nested lists as maps”) and not a language or compiler defect as such

That’s a good perspective.

If there’s nothing to change here, behaviorally, and @calvinjuarez is fine with it, I’m fine to close as a won’t-change, and anything specific someone wants to do to handle this case sounds like maybe the @plugin route is indeed the way to go.

Sound good?

1reaction
calvinjuarezcommented, Feb 26, 2019

DRs as maps is way better. Anyone coming here for maps should do that instead.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What do commas and spaces in multiple classes mean in CSS?
A comma, as others have stated, is a way to apply rules to many different nodes at one time. In this case, the...
Read more >
How do I use commas with parenthetical elements?
Here's how to use commas with parenthetical elements. ... Instead, you might choose to use brackets or dashes to separate a parenthetical element...
Read more >
Extended Rules for Using Commas - Purdue OWL
1. Use commas to separate independent clauses when they are joined by any of these seven coordinating conjunctions: and, but, for, or, nor,...
Read more >
The comma | EF | United States
A list of adjectives usually requires commas. However, if an adjective is modifying another adjective you do not separate them with a comma...
Read more >
Comma, Dashes, Parentheses: Effectively Using Punctuations ...
Use a comma when listing items in a series. Some publications have stopped ... Some publishers print a space on either side of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found