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

Signature stringifies the ;; as a comma in Rakudo #4347

Closed
p6rt opened this issue Jun 25, 2015 · 7 comments
Closed

Signature stringifies the ;; as a comma in Rakudo #4347

p6rt opened this issue Jun 25, 2015 · 7 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jun 25, 2015

Migrated from rt.perl.org#125482 (status was 'resolved')

Searchable as RT125482$

@p6rt
Copy link
Author

p6rt commented Jun 25, 2015

From @masak

Suggested by yary.

<masak> m​: sub foo($a;; $b) { say "OH HAI" }; foo(1, 2); say &foo.signature
<camelia> rakudo-moar 553f0e​: OUTPUT«OH HAI␤(Any $a, Any $b)␤»
<masak> arguably, that should say `(Any $a;; Any $b)`, because the
difference affects the behavior of the signature.
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Jun 25, 2015

From @lizmat

On 25 Jun 2015, at 09​:38, Carl Mäsak (via RT) <perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by "Carl Mäsak"
# Please include the string​: [perl #​125482]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=125482 >

Suggested by yary.

<masak> m​: sub foo($a;; $b) { say "OH HAI" }; foo(1, 2); say &foo.signature
<camelia> rakudo-moar 553f0e​: OUTPUT«OH HAI␤(Any $a, Any $b)␤»
<masak> arguably, that should say `(Any $a;; Any $b)`, because the
difference affects the behavior of the signature.
* masak submits rakudobug

Looks to me that ($a;;$b) as a signature is NYI, so perhaps we should make it an NYI compile time error in the mean time.

At least, I don’t see where that information is currently being kept in the Signature object.

Liz

@p6rt
Copy link
Author

p6rt commented Jun 25, 2015

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jun 25, 2015

From @lizmat

Fixed by f43725a0385b13193476

On 25 Jun 2015, at 09​:38, Carl Mäsak (via RT) <perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by "Carl Mäsak"
# Please include the string​: [perl #​125482]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=125482 >

Suggested by yary.

<masak> m​: sub foo($a;; $b) { say "OH HAI" }; foo(1, 2); say &foo.signature
<camelia> rakudo-moar 553f0e​: OUTPUT«OH HAI␤(Any $a, Any $b)␤»
<masak> arguably, that should say `(Any $a;; Any $b)`, because the
difference affects the behavior of the signature.
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Jun 28, 2015

From @usev6

I added a test to 06-signature/introspection.t with commit Raku/roast@9a4daf7f91

Please note that the output no longer contains the type Any​:

$ perl6-m -e 'sub foo($a;; $b) { say "OH HAI" }; foo(1, 2); say &foo.signature'
OH HAI
($a;; $b)

I'm closing this ticket as resolved.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Jun 28, 2015

From @usev6

I added a test to 06-signature/introspection.t with commit Raku/roast@9a4daf7f91

Please note that the output no longer contains the type Any​:

$ perl6-m -e 'sub foo($a;; $b) { say "OH HAI" }; foo(1, 2); say &foo.signature'
OH HAI
($a;; $b)

I'm closing this ticket as resolved.

@p6rt p6rt closed this as completed Jun 28, 2015
@p6rt
Copy link
Author

p6rt commented Jun 28, 2015

@usev6 - Status changed from 'open' to 'resolved'

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant