hitespace characters
that some editors don't even let you type are particularly
beginner-hostile, whereas allowing undef arguments where they don't make
sense (and hence where callers don't generally try supplying undef) is
something that many Perl 5 programs have been doing for years with no
widespread harm.
Cheers
Smylers
--
http://twitter.com/Smylers2
Aristotle Pagaltzis writes:
Just because you can’t think of the use of a feature doesn’t mean
there isn’t one.
No, though it possibly means the docs could do with a clearer example
which demonstrates its use in a situation where it makes sense to use
it.
Smylers
--
http://twitter.com
the way. (This was over 10 years ago, when Python wasn't as
widespread or recognized as it is now.)
I think that over time the amount of Python increased.
So maybe the situation isn't completely without hope.
Smylers
--
Why drug companies shouldn't be allowed to hide research results
Larry Wall writes:
On Tue, Jul 24, 2012 at 09:42:10PM +0100, Smylers wrote:
: Under what circumstances is tcuc useful? I'm currently suffering
: from a lack of imagination as to when somebody would ever want that
: rather than just uc.
A bare uc will do the wrong thing for the first
),
Under what circumstances is tcuc useful? I'm currently suffering from a
lack of imagination as to when somebody would ever want that rather than
just uc.
Cheers
Smylers
--
http://twitter.com/Smylers2
Moritz Lenz writes:
I've tried to answer that here: http://faq.perl6.org/#say
Thanks. (And more than tried, I reckon you've succeeded.)
Smylers
--
http://twitter.com/Smylers2
?
Smylers
--
http://twitter.com/Smylers2
and illo_figut as being the same
identifier (both for its own identifiers and those minted in programs),
with programmers able to use either separator on a whim?
That would seem to be the most human-friendly approach.
Smylers
--
http://twitter.com/Smylers2
as the Perl 5 operator that
I'm used to; that muddles the distinction you make above about matching
ranges versus generating lists.
Smylers
--
http://twitter.com/Smylers2
don't want to do that every time the program is run.
no warnings;
Smylers
--
http://twitter.com/Smylers2
Larry Wall writes:
On Fri, Jun 18, 2010 at 11:21:52AM +0200, Jan Ingvoldstad wrote:
: On Fri, Jun 18, 2010 at 11:15, Smylers smyl...@stripey.com wrote:
:
: For the benefit of Perl 5 programmers used to string reverse it
: would be nice to have a warning if reverse is invoked
(but not with an array which happens to contain a string as its
only element).
Smylers
something?
Cheers
Smylers
--
http://twitter.com/Smylers2
as possible to produce the desired
+series of values. The lists are evaluated as flat lists.
Takes a left -- is this the satnav operator?
Smylers
--
Connecting walls made up by me now on the BBC -- this week's 'Only Connect',
the fiendish TV quiz/puzzle show: http://www.bbc.co.uk/programmes
calling it:
I think arrange return needs a to in the middle.
Smylers
--
Watch fiendish TV quiz 'Only Connect' (some questions by me)
Mondays at 20:30 on BBC4, or iPlayer: http://www.bbc.co.uk/programmes/b00lskhg
.
Smylers
--
Watch fiendish TV quiz 'Only Connect' (some questions by me)
Mondays at 20:30 on BBC4, or iPlayer: http://www.bbc.co.uk/programmes/b00lskhg
(including S19) already seem to believe that two hyphens
are needed:
jerry gay writes:
this is why it's spelled 'perl6 --doc'
Smylers
providing for braces, but
with the possibility of later adding options to indicate other
termination points if in practice there turn out to be many situations
where the braces don't work well.
Smylers
the intuitive behaviour, but don't need a special case.
And the general mechanism used to make this work is something available
for all Perl programs to take advantage of, not an exception that
requires baking into the core language internals.
Smylers
not what
Perl 6 should be emphasizing.)
Smylers
other.
Fortunately butterflies and parrots can both be very colourful -- so
Camelia could use the Parrot parrot's palette, and there'd be a strong
visual link between them.
Smylers
considered a field of politics by most major parties), so it
wouldn't be beneficial to give the perception of any poliical links,
even inadvertently.
Smylers
Just an idea. Please discuss.
[1]: http://en.wikipedia.org/wiki/Gimel#Hebrew_Gimel
[2]: http://www.nntp.perl.org/group/perl.perl6
the argument for it being C@_?
Smylers
feel it is much better for you
+to make up a different operator than overload an existing operator for
+off topic uses.
I'm wondering if something similar should apply to C--; that string
and numeric decrement are different, so should have different operators.
Smylers
Does the variable name in the comment need changing too?
Smylers
regexes and division, in different places),
but that doesn't effect the equivalence of the above.
Smylers
) then provides a way of changing anything about it.
Hope that helps.
Smylers
named it as such.)
Smylers
cdumont writes:
Smylers wrote:
cdumont writes:
The given ... when doesn't seem to bring that much from switch ...
case given ...
Surely it brings all of it? Plus much more as well. Much of the
power is in the smart-matching, which enables many different sorts
on HTML4 that encourages authors not to bother with XML?
If you didn't predict that, how does it fit in with your claim that you
can only see more XML for all of us?
Smylers
in the core which _Larry_ sees as
being advantageous over other languages! (And the rest of us tag along
because we like the decisions he makes.)
Smylers
In Perl 5 would it've been good to add XML::Parser to the core as soon
as it was written, and ecouraged everybody to standardize on using that
rather than coming up with others?
Smylers
[EMAIL PROTECTED] writes:
-A leading C[ or C+ indicates an enumerated character class. Ranges
+A leading C[ indicates an enumerated character class. Ranges
in enumerated character classes are indicated with C.. rather than
C-.
/ [a..z_]* /
- / +[a..z_]* /
- / +[ a..z _
Juerd Waalboer writes:
Smylers skribis 2007-06-21 23:23 (+0100):
Of course. But there's a big difference between the attitude of
'let's do the best we can right now' and 'this is our one chance to
do this right'.
I think that for some things, mainly for setting community standards
Darren Duncan writes:
At 11:23 PM +0100 6/21/07, Smylers wrote:
Has Larry yet decreed whether Web will be bundled with Perl 6?
I believe that what Larry has said is that there are no official core
modules, ... So ... not something to worry about now.
Thanks for that, Darren.
Smylers
description of what it does, it's obvious what the parameter(s)
are for and what it returns; repeating that information doesn't help
anybody.
(It may help computers, though.)
Smylers
, but is *not* considered Pod by the Perl 6 parser. And I think
that's just fine.
I like it!
Is that a decision yet, or were you just thinking out loud?
Smylers
Mark Overmeer writes:
* Smylers ([EMAIL PROTECTED]) [070616 08:44]:
With these new Pod rules it's possible to entirely remove Pod from a
file without knowing _anything_ about the host language. That
permits Pod to be used to document just about anything; all you need
to allow
area which has had immense progress since the release
of Perl 5. Look at where Test::More, Test::Class, TAP::Parser and so on
are now; we certainly wouldn't want to be restricted to a standard of
best practices in testing from the early 1990s.
Smylers
entirely possible that during Perl 6's life somebody, possibly
somebody who at the moment hasn't even heard of Perl 6, will create a
better web module. It would be good if at that point it becomes
straightforward for it to get acceptance and people to adopt it.
Smylers
to understand POD to read a program where POD is used :
it's usually quite clear from the content where it is POD and where it
is doc and each section that don't look like Perl is usually POD.
Yes. But not if you've created unintentional Pod.
Smylers
[Apologies for the lag in this. I wrote 95
brian d foy writes:
In article [EMAIL PROTECTED], Smylers
[EMAIL PROTECTED] wrote:
brian d foy writes:
In article
[EMAIL PROTECTED], Damian
Conway [EMAIL PROTECTED] wrote:
No. It's Pod. *Any* line that begins with '=begin' always starts a Pod
block. Always
Mark Overmeer writes:
* Smylers ([EMAIL PROTECTED]) [070616 09:09]:
You're concerned that an aspect of Perl 6 might have too much
freedom? Isn't Perl all about giving users freedom to choose their
own way of doing something?
Why treat documentation as a second-class citizen all
Darren Duncan writes:
At 6:37 PM +0100 6/21/07, Smylers wrote:
Web module? This is the first I've heard of it. Where is it being
planned, if not on this list?
It was being discussed on the perl6-users list, last year.
Thanks.
Smylers
reached the code you already know what it's supposed
to be doing) -- but I'm not adamant about continuing with this style.
Smylers
then everything would just
have worked naturally!
Smylers
there is no paragraph
or delimited form of the C=encoding directive (just as there is no
paragraph or delimited form of C=begin).
I was with you right up until the mention of C=encoding; what's that
got to do with anything?
Smylers
documentation then I can
read, browse, and search that documentation on its website without
needing to upgrade any of my computers.
Smylers
Juerd Waalboer writes:
Smylers skribis 2007-06-21 21:33 (+0100):
I disagree. perldoc.perl.org was started by JJ, gained popularity,
and then got awarded the official blessing of the onion. Over the
years there have many several sites with Perl documenation.
That's not a way
Moritz Lenz writes:
Smylers wrote:
Moritz Lenz writes:
Web is hopefully CGI done right
... why are we hoping that it will be done right?
Because we hope we learned from the past. There are several other
modules that fullfill most of CGI's tasks, some of them do most
are much less likely to be bothered to do.
Smylers
, but in the absence of a good reason it's
expected that they be used).
Smylers
-- and are inspired way of
avoiding surprising people just putting hashes at the beginning of all
their lines of code.
Smylers
, the current name is good: it has the convenient mnemonic of being
the name that people object to ...
Smylers
to open
something but doesn't know wether that thing is a file, a directory, or
a URL? I'm still unpersuaded this is sensible default behaviour.
Smylers
[Apologies for the delay on this; I first tried to send it on April
15th, and only just spotted it failed to get through.]
the link is one-way,
and that posting using the Google Groups interface doesn't result in
your mail reaching the list elsewhere.)
Smylers
, many programmers would surely continue to use
Copen for this.
Users being able to trick such programs into opening a directory rather
than a file could be unpleasant.
Smylers
Larry Wall writes:
On Mon, Mar 12, 2007 at 10:20:12PM +, Smylers wrote:
: [EMAIL PROTECTED] writes:
:
: Separated clobbering == == from pushy == and ==
:
: +Feeding into the C* whatever term sets the source for the next sink.
: +To append multiple sources to the next sink
append to something that isn't there? Would it matter if the
first feed also had a double pointy bracket on it?
Smylers
Larry Wall writes:
On Thu, Mar 08, 2007 at 09:05:32AM +, Smylers wrote:
: So I fear that people will do the same thing in Perl 6. Which,
: initially, will appear to work. But then, some months later,
: somebody upgrades the installed version of a module (or the program
: gets
on the text
it isn't a recent change; my apologies for not spotting it earlier.
Smylers
are permitted,
rather than literal values.
Smylers
why loading a module would be too much of a burden.
In conclusion, I consider functionality like relational-join to
provide considerable conciseness to very common data processing
operations
Are there Cpan modules in existence for doing this kind of thing in Perl
5?
Smylers
into very nested data
structures, whatever) could be tedious. Repetition is certainly poor
style and makes the code more prone to errors being introduced.
Also, it relies on the contents of C@rray not being cleared inside the
loop.
Smylers
that being in a module doesn't (necessarily) mean 'not distributed
with core Perl'.
1. join() aka natural_join():
Remember that Perl already has a Cjoin function, for joining strings.
Smylers
operators exist it looks pretty arbitrary which is
which.
For this esoteric sort of stuff can't we have named operators (short
names if you like, perhaps taken from assembly language), in a module
that can be loaded by those who need them?
Smylers
to be. And at least some of us are trying to discourage such
things, hoping to deflect them away from taking Larry's time away from
getting finished synthesizing what we already have -- especially in the
case of things which could easily be provided by a module.
Smylers
Jonathan Lang writes:
Smylers wrote:
Richard Hainsworth writes:
When does the specification of perl6 come to an end?
At a guess: when it's implemented.
Many of the recent changes have been made by Larry in response to his
trying to write the grammar, and encountering
) {...}
+Those are a bit unwieldy, so you may also use these short forms:
+
+method .( |$capture ) {...}
+method @.[ *@@slices ] {...}
+method %.{ *@@slices } {...}
Did you mean for whats inside the brackets to differ between the long
and short forms for arrays and hashes?
Smylers
? Would you also be able to declare a separate
(presumably read-write) variable, C$temperature in the same scope as
C$-temperature?
Smylers
Jonathan Scott Duff writes:
On 2/6/07, Smylers [EMAIL PROTECTED] wrote:
Blair Sutton writes:
David Green wrote:
In some ways, I like not having a [0] index at all: programmers
may be used to counting from zero, but normal humans start with
first, second, third, ... third
rather
ugly, exactly the sort of awkwardness that Perl 6 is eliminating
elsewhere.
Smylers
via a Perl use pragma.
Hmmm, a pragma's a bit heavyweight for this; how about being able to set
this with a special global variable -- that sure sounds handy ...
Smylers
for a better name.)
Smylers
Carl Mäsak writes:
my $foo;
# ...later in the same scope...
my $foo; # illegal Perl5, legal Perl6
That isn't illegal in Perl 5. It yields the warning:
my variable $foo masks earlier declaration in same scope
but it does work.
Smylers
could be loadable from a module.
I still reckon a single type of division is sufficient in core, with
everything else in modules.
Smylers
TSa writes:
Smylers wrote:
I'd much prefer for introductory Perl books not to have to explain
what Euclidean means.
Yeah, it will not dive into the exact reasons why the floor
definition was chosen, either.
Sure, if we _only_ have floor (or indeed if we _only_ have one of the
others
'
49.5
How would you get the current Perl 5 behaviour of displaying fractional
parts if they exist and not if they don't?
Smylers
Larry Wall writes:
The default / operator is not going to do integer division.
Yay!
This is not negotiable;
Double-yay!
Whether a Num that happens to be an integer prints out with .0 is a
separate issue. My bias is that a Num pretend to be an integer when
it can.
Triple-yay!
Smylers
available as modules. Presumably people who need
this stuff in Perl 5 have already created Cpan modules providing them,
and the same will happen in Perl 6.
Smylers
they finally meet it.
Smylers
unlikely that the syntax is final if the feature is only being
mooted as might be possible (and the rest of Larry's message wasn't
exactly enthusiastic about the idea).
Smylers
Jonathan Lang writes:
For the record, I think that superdoes should be spelled done_by.
I think it's unlikely that Larry will incorporate any keywords that
contain underscores -- certainly not without at least searching for a
single word that sums up the concept in question.
Smylers
Set members identicalmatch if $_ === $x
+Hashany(Hash) hash key intersectionmatch if exists
$_{any(Hash.keys)}
Should that last one have a C$x in the code somewhere?
Smylers
. Modification of a Set is more
complex than modification of a Bag, so in that sense the Bag is the
main type.
Is this still the Perl 6 _Language_ group? The one where we consider
what Perl 6 will do, and leave the implementation details to others?
Smylers
TSa writes:
I want to propose the addition of a Bag type
Different from the CBag that's already mentioned in Synopsis 3?
Smylers
often enough in Perl 5 classes, and I'm
almost certain there are no plans to remove it from Perl 6.
Smylers
? (Is it even a safe assumption
to make about Perl 5?)
Note further that in infinite precision the arithmetic shift left
maintains the sign ...
Do we expect Perl 6 to be running on infinite-precision systems?
Smylers
it is it any different from the functional version -- labels being
associated with intermediate parts of the calculation?
Smylers
programming
languages.
Yes, but not from the source of their implementation. (At least, not
from the source of any which don't have a licence explicitly permitting
doing so.)
Smylers
it to work
exactly opposite to how it does.
It doesn't really matter which way is right -- merely having some people
on each side, all naturally deriving what makes sense to them -- shows
that implementing this would cause much confusion.
Smylers
Smylers
Trey Harris writes:
In a message dated Wed, 4 Oct 2006, Smylers writes:
Trey Harris writes: T
I remember not so many years ago when there were a lot of modules
floating around that required you to do no strict of various
flavors in order to use them.
Really? How?
I wrote
expected to be a
string. Not a good trap to have in the language.
Smylers
Jonathan Lang writes:
Smylers wrote:
Jonathan Lang writes:
Translating this to perl 6, I'm hoping that perl6 is smart enough
to let me say:
s(pattern) { doit() }
Instead of
s(pattern) { { doit() } }
That special case is nasty if you don't know about
in your program then
it is lexically scoped and only affects your code, not that of other
files you load in.
C-w does affect all files, but that's one of the reasons why Cuse
warnings is an improvement over C-w, because it lets the author of
each bit of code have control over it.
Smylers
: it's _you_ that's forbidding things that are otherwise
legal in your code; you can choose whether to do it or not.
Jonathan's examples were all of _somebody else_ forbidding you from
doing otherwise-legal things; you have this imposed on you without
choice.
Smylers
Larry Wall writes:
Conjecture: We need a corresponding sigil to request captureness. As
Bikeshed: What should that sigil be?
What's * doing these days?
Smylers
properly, not half-heartedly with
an alias.
Smylers
not that bothered either way myself), but just some
points to bear in mind and reasons to be cautious.
Smylers
1 - 100 of 257 matches
Mail list logo