-
Notifications
You must be signed in to change notification settings - Fork 291
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
Prefer non-ASCII syntax in code samples #1520
Comments
FWIW for downvoters: consider upvoting instead. This ticket will give enough incentive to provide automatically generated texas code samples. Right now we have a bunch of code samples with texas syntax and a bunch of code samples with non-texas syntax. Everyone loses. But we can possibly have a win-win situation if we start moving into the direction this ticket suggests. |
Just to clarify the texas/non-texas confusion, this ticket is saying that we should change in code samples:
|
I'm all for this, but we should either provide a test that checks it or an exhaustive list to start modifying it. |
Refs #1520. I chose this one because it's got a log of Inf. Not changed in text or when it actually returns Inf.
I understand that a lot of people love unicode source code. For a lot of people in my surroundings, however, it's seen as "cute". |
@nxadm that's OK and I think nobody is objecting. But what is your proposal? As stated in the OP, we already have some examples with non-ascii characters. Changing them all to ASCII is not going to happen I think, but we can perhaps turn them into links that point to unicode_ascii page, so that anyone can quickly see the ascii equivalent if they need to. Would that be good enough in your opinion? And if not, what would be then? |
I don't know about web development enough, but it would be could if the ascii example would he hidden under a click-open arrow beneath the unicode example. |
Not sure we can do that with POD6. Can you show an example?
We could use CSS and regexen, right? Isn't that supposed to work now?
|
And also substitutes `Inf` for `∞` in a bunch of places. Refs #1520, but does not really close it. Lot of work to do, and maybe some discussion
Looking at it now:
This is probably incorrect, as Perl6::Tidy can do the conversion both ways (drforr/perl6-Perl6-Tidy#3). One is more difficult that the other for sure, but both should be possible. |
We can generate them statically and have some CSS magic select one or the
other.
El sáb., 21 jul. 2018 a las 13:42, Aleks-Daniel Jakimenko-Aleksejev (<
[email protected]>) escribió:
… Looking at it now:
Automatically replacing non-texas ops on the fly will be possible if we
decide to reopen #526 <#526> (other
way around is nearly impossible)
This is probably incorrect, as Perl6::Tidy can do the conversion both ways
(drforr/perl6-Perl6-Tidy#3
<drforr/perl6-Perl6-Tidy#3>). One is more
difficult that the other for sure, but both should be possible.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1520 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAB9Ly5p7HYV9Q5X6-Y-CileC_0Kt5jks5uIxOigaJpZM4PLD84>
.
--
JJ
|
I am inclined to create this ticket because:
perl6 -e '…'
is easy for users if non-ascii quotes are used consistently"…"
type of quotes too much (possibly contributors are preferring"…"
instead of'…'
so that things can be copy-pasted intoperl6 -e '…'
, but I'd much rather see single quotes used consistently when no interpolation is needed)xxt/
tests and someone who can type non-ascii stuff easily will rework a bunch of new code snippets once a few months.It may sound radical but I guess that's technically the right thing to do.
TODOs:
xt
orxxt
tests?The text was updated successfully, but these errors were encountered: