Skip to content
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

default separator of Bag.fmt should be space, not newline #3393

Closed
p6rt opened this issue May 22, 2014 · 4 comments
Closed

default separator of Bag.fmt should be space, not newline #3393

p6rt opened this issue May 22, 2014 · 4 comments
Labels
LHF Low-hanging fruit, easy to resolve

Comments

@p6rt
Copy link

p6rt commented May 22, 2014

Migrated from rt.perl.org#121947 (status was 'rejected')

Searchable as RT121947$

@p6rt
Copy link
Author

p6rt commented May 22, 2014

From @FROGGS

<TimToady> p6​: say <a a b b c c d d>.Bag.fmt('%s')
<camelia> ..rakudo-jvm 900f0b​: OUTPUT«b␤a␤d␤c␤»
<camelia> ..rakudo-{parrot,moar} 900f0b​: OUTPUT«a␤b␤c␤d␤»
<TimToady> hmm, why the newlines?
<FROGGS> seems to be the default separator
<FROGGS> m​: say <a a b b c c d d>.Bag.fmt('%s', ',')
<camelia> rakudo-moar 900f0b​: OUTPUT«a,b,c,d␤»
<TimToady> listy things are supposed to use ' ' as the default

@p6rt
Copy link
Author

p6rt commented Jul 18, 2014

From @FROGGS

Is a Bag now more listy or more hashy?

FROGGS m​: say <a a b b c c d d>.Bag.fmt()
camelia rakudo-moar 0aaba7​: OUTPUT«a 2␤b 2␤c 2␤d 2␤»
FROGGS m​: say <a a b b c c d d>.hash.fmt()
camelia rakudo-moar 0aaba7​: OUTPUT«a a␤b b␤c c␤d d␤»

@p6rt
Copy link
Author

p6rt commented Jul 20, 2015

From @perlpilot

On Fri Jul 18 04​:04​:11 2014, FROGGS.de wrote​:

Is a Bag now more listy or more hashy?

FROGGS m​: say <a a b b c c d d>.Bag.fmt()
camelia rakudo-moar 0aaba7​: OUTPUT«a 2␤b 2␤c 2␤d 2␤»
FROGGS m​: say <a a b b c c d d>.hash.fmt()
camelia rakudo-moar 0aaba7​: OUTPUT«a a␤b b␤c c␤d d␤»

Working as expected. Bags are hashy.

--

-Scott (PerlJam/perlpilot)

@p6rt
Copy link
Author

p6rt commented Jul 20, 2015

@perlpilot - Status changed from 'new' to 'rejected'

@p6rt p6rt closed this as completed Jul 20, 2015
@p6rt p6rt added the LHF Low-hanging fruit, easy to resolve label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LHF Low-hanging fruit, easy to resolve
Projects
None yet
Development

No branches or pull requests

1 participant