[bug #68101] Missed error with missing tilde in function output
Fernando <[email protected]>
| Newsgroups | gmane.comp.gnu.octave.bugs |
|---|---|
| Message-ID | <[email protected]> |
Please use the bug tracker to post updates to a bug report. The mailing list is intended as a read-only notification stream. Info posted to this mailing list address won't appear in the tracker database where it is most useful.
Follow-up Comment #4, bug #68101 (group octave):
I don't think it's bug for bug compatibility. I think the way Matlab and
Octave treat commas inside square/curly brackets is consistent, and it's the
same for both LHS and arrays.
As explained e.g. here:
https://stackoverflow.com/a/51969806/32345262
allowing one extra comma at the end of a list is common in different
languages. E.g. in Python, this is valid:
x=[
1,
2,
3,
4,
]
This makes it easier to add or remove elements from the list, and also to
generate the list programmatically. Allowing one extra comma at the beginning
is not common in other languages, but I think the idea is the same, only that
you put the comma before each element instead of after, like this:
x=[
,1
,2
,3
,4
]
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68101>
_______________________________________________
Mensaje enviado vía Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaaN6mAAKCRCqLAuaBUf3 To6kAQC84VfH3DgIu5Gg+XckXAYVPpz6RcEJLryrrriQ5DSfoAD+Kuuh+tcVvmqi i6FYT/b4qM0gwQ9zDYf1b/S82M76BQs= =7xUz -----END PGP SIGNATURE-----