Re: An interesting math formula to share

2018-07-10 Thread Thomas Klausner
Hi! On Tue, Jul 10, 2018 at 02:02:45AM -0700, ToddAndMargo wrote: > Remembering from my school days, a famous mathematician > whose name I forget came up with a formula as a kid > that made math history. https://en.wikipedia.org/wiki/Carl_Friedrich_Gauss greetings, domm -- #!/usr/bin/perl

Re: need second pair of eyes

2018-06-04 Thread Thomas Klausner
Hi! On Sun, Jun 03, 2018 at 03:05:33PM -0700, ToddAndMargo wrote: > On 06/03/2018 02:54 PM, Brad Gilbert wrote: > > But in this case it is even better to use -I and -M > > > > p6 -I. -MRunNoShell -e '( my $a, my $b ) = > > RunNoShell::RunNoShell("ls *.pm6"); say $a;' > > $ perl6

Re: odd and even

2018-05-04 Thread Thomas Klausner
Hi! On Mon, Apr 30, 2018 at 02:23:44AM -0700, ToddAndMargo wrote: > So, the main issue I have with the docs is that they > "seem" to be written as a refresher for an advanced use > and not as a trainer for a newbie. I guess that's because the docs are meant as a reference, and not as a tutoria

Re: need s/ help

2018-05-01 Thread Thomas Klausner
Hi! On Tue, May 01, 2018 at 04:03:24PM +, Fernando Santagata wrote: > I guess there are more ways to do that than I can count :-) Which reminds me of http://paris.mongueurs.net/aplusplus.html Greetings, domm -- #!/usr/bin/perl http://domm.plix.at for(ref bless{

Re: Bag / Set ideas - making them substitutable for Arrays makes them more useful

2010-11-09 Thread TSa (Thomas Sandlaß)
On Tuesday, 9. November 2010 01:45:52 Mason Kramer wrote: > I have to disagree here. Arrays and Hashes may be about storage (I don't > think they are, though, since you can change the (storage) implemenation of > an Array or Hash via its metaclass and it can still remain an Array or > Hash). What

Re: Bag / Set ideas - making them substitutable for Arrays makes them more useful

2010-11-08 Thread TSa (Thomas Sandlaß)
On Monday, 8. November 2010 17:20:43 Jon Lang wrote: > Solomon Foster wrote: > > Well, hyperoperators work fine on Hashes, they operate on the values, > > paired up by key if needed.  (That is, %hash>>++ doesn't care about > > the keys, %hash1 >>+<< %hash2 sums based on keys.)  I would assume > > t

Re: Smart match isn't on Bool

2010-08-02 Thread TSa (Thomas Sandlaß)
HaloO, On Monday, 2. August 2010 20:02:40 Mark J. Reed wrote: > On Sun, Aug 1, 2010 at 6:02 PM, Jonathan Worthington wrote: > > No, given-when is smart-matching. The RHS of a smart-match decides what > > happens. If you do True ~~ 1 then that's 1.ACCEPTS(True) which is going > > to do +True and

Re: Smart match isn't on Bool

2010-08-01 Thread TSa (Thomas Sandlaß)
HaloO, On Saturday, 31. July 2010 20:47:49 Patrick R. Michaud wrote: > On Sat, Jul 31, 2010 at 10:56:47AM -0600, David Green wrote: > > It's not unreasonable, especially if that's what you expect. > > But it's even more reasonable to expect this to work: > > given $something { > >

Re: Smart match isn't on Bool

2010-07-31 Thread TSa (Thomas Sandlaß)
HaloO, On Saturday, 31. July 2010 18:56:47 David Green wrote: > On 2010-07-31, at 1:33 am, Moritz Lenz wrote: > > sub test() { True }; > > given 0 { when test() { say "OH NOEZ" } } > > I don't think it's unreasonable to expect the output to be "OH NOEZ". How does this relate the given to the when

Re: Suggested magic for "a" .. "b"

2010-07-28 Thread TSa (Thomas Sandlaß)
On Wednesday, 28. July 2010 05:12:52 Michael Zedeler wrote: > Writing ($a .. $b).reverse doesn't make any sense if the result were a > new Range, since Ranges should then only be used for inclusion tests (so > swapping endpoints doesn't have any meaningful interpretation), but > applying .reverse c

Re: Type system for Perl 6

2010-02-05 Thread TSa (Thomas Sandlaß)
HaloO Mr Castagna, On Friday, 5. February 2010 23:13:25 you wrote: > Actually I noticed an old post you did on this list 5 years ago. It > contained the following drawing Yeah it's a long time. And I've sort of lost interest in type theory. But then I tried to persuade the list of a sophisticated

Re: Type system for Perl 6

2010-02-05 Thread TSa (Thomas Sandlaß)
HaloO Mr Castagna On Friday, 5. February 2010 16:43:26 you wrote: > I see I'm going out of the scope of this list. I apologize for spamming, > but please continue to post here or send me by PM every information about > Perls 6 types. I'm delighted to have you interested in Perl 6. I know your boo

Re: How does List.map: { .say } work?

2009-11-04 Thread TSa (Thomas Sandlaß)
HaloO, On Tuesday, 3. November 2009 17:13:22 Carl Mäsak wrote: > That would make statement modifier for loops less useful. For those, > there's nowhere to put the lambda arrow. > > ++$_ for @things; I think this is resolved with the is ref binding which implies that the thingy that is bound to

Re: Int/Rat max precision (was Re: r28882 - docs/Perl6/Spec)

2009-10-27 Thread TSa (Thomas Sandlaß)
HaloO, On Friday, 23. October 2009 02:27:00 Darren Duncan wrote: > Thinking further, my interpretation of what you said above is that the > Rational role is now basically saying that a number is represented in terms > of numerator/denominator and that certain operators are supported, but now > it

Re: role invocant slot in type sig (was: unusual invocants)

2009-10-26 Thread TSa (Thomas Sandlaß)
HaloO, On Thursday, 22. October 2009 20:58:15 I wrote: > The class Dogwood however might be written as > >class Dogwood does Dog[Dogwood:] does Wood[Dogwood:] >{ >method Dog {...} >method Wood {...} >method bark {...} >} On #perl there was the question if any t

Re: unusual invocants

2009-10-26 Thread TSa (Thomas Sandlaß)
HaloO, On Sunday, 25. October 2009 01:38:21 Martin D Kealey wrote: > Sounds like going back to static typing -- which does sometimes have some > advantages. Well, you can also consider it dynamic. The important point is that it is a constraint on allowed types e.g. in the sig of a sub or on a var

role invocant slot in type sig (was: unusual invocants)

2009-10-22 Thread TSa (Thomas Sandlaß)
HaloO, On Thursday, 22. October 2009 18:31:16 I wrote: > The invocant slot of the role signature is sort of implied in the spec > already! I also like this because a type in Perl 6 is then always > written as SomeRole[SomeClass:]. Classes without explicit roles are > Any[SomeClass:] and untyped is

Re: unusual invocants

2009-10-21 Thread TSa (Thomas Sandlaß)
HaloO, On Wednesday, 21. October 2009 12:40:06 Mark J. Reed wrote: > Rather than disallow the composition, I'd say that any class, role, or > object that does both roles must override the method in question. The problem that Ovid posed needs to be resolved in the dispatch tables seen in certain m

Re: unusual invocants

2009-10-20 Thread TSa (Thomas Sandlaß)
HaloO, On Tuesday, 20. October 2009 18:35:36 David Green wrote: > >> So what the OP wants to do is declare a method that is available on > >> all those invocants - and only those invocatnts - which do all of > >> roles X, Y, and Z. Granted, you can declare a new role XandYandZ > >> that does X, Y

Re: Freezing role methods

2009-10-14 Thread TSa (Thomas Sandlaß)
HaloO, On Wednesday, 14. October 2009 12:18:30 Ovid wrote: > You *could* (this wasn't explained in the paper) extract those > methods into C::x(), check your callers and dispatch as appropriate, but > that would get very problematic, particularly with roles composed of other > roles. I consider t

Re: Synopsis 02: Range objects

2009-08-28 Thread TSa (Thomas Sandlaß)
On Thursday, 27. August 2009 23:58:51 Jon Lang wrote: > It might also be nice to have a stringifying version; perhaps 'be', > using the same "everything's an acronym" naming convention used by > other stringifying operators (e.g., 'lt' is "less than", 'le' is 'less > than or equal to', 'leg' is "le

Re: On Sets (Was: Re: On Junctions)

2009-03-28 Thread TSa (Thomas Sandlaß)
HaloO, On Friday, 27. March 2009 12:57:49 Daniel Ruoso wrote: > 1 - multi infix:<+>(Set $set, Num $a) > This would return another set, with each value of $set summed with $a. I think that this mixed case should numify the set to the number of elements to comply with array semantics. infix:<+> sho

Re: Logo considerations

2009-03-25 Thread TSa (Thomas Sandlaß)
On Tuesday, 24. March 2009 05:47:12 Darren Duncan wrote: > If you're going for sciencey or mathey illustrations, then I think its > important to include something that speaks quantum physics in there, since > quantum superpositions aka Junctions are one of the big central user > features that Perl

Re: a junction or not

2009-03-18 Thread TSa (Thomas Sandlaß)
HaloO, On Tuesday, 17. March 2009 10:25:27 David Green wrote: > > That is, it would return a Junction of Str, not a Str. So the > > question is how to get something that returns an expression to the > > effect of: > > 'any(' ~ $choice.eigenstates.«perl.join(',') ~ ')' > > say $choice.perl > >

Is there a reasonable way to access perl 6 regexen and grammars in haskell, via the pugs modules? (where's the make ghci target?)

2009-03-15 Thread Thomas Hartman
I started to look into this and got stuck loading pugs in ghci, about which I posted at http://www.perlmonks.org/?node_id=750768 The INSTALL file mentions a make ghci target but that appears to be gone now. Any chance of getting it back?

Re: Meta- and Hyperoperators and Anonymous Subroutines

2009-03-02 Thread Thomas Chust
2009/3/2 Moritz Lenz : > Thomas Chust wrote: >> [...] >> Therefore I think that it would be a nice addition for Perl 6 if the >> X...X, <<...>> and similar operators could be applied to anonymous >> subroutines in addition to other operators. If such a synta

Meta- and Hyperoperators and Anonymous Subroutines

2009-03-02 Thread Thomas Chust
it would probably be worthwhile to offer methods like map and fold on array instances that take subroutine references as an alternative. cu, Thomas -- When C++ is your hammer, every problem looks like your thumb.

Re: Range and continuous intervals

2009-03-01 Thread TSa (Thomas Sandlaß)
On Friday, 27. February 2009 07:42:17 Darren Duncan wrote: > I was thinking that Perl 6 ought to have a generic interval type that is > conceptually like Range, in that it is defined using a pair of values of an > ordered type and includes all the values between those, but unlike Range > that type

Re: Comparing inexact values (was "Re: Temporal changes")

2009-02-24 Thread TSa (Thomas Sandlaß)
On Tuesday, 24. February 2009 17:59:31 Larry Wall wrote: > So it might be better as a (very tight?) operator, regardless of > the spelling: > > $x ~~ $y within $epsilon This is a pretty add-on to smartmatch but I still think we are wasting a valueable slot in the smartmatch table by making num

Re: min= (from "Rakudo Built-ins Can Now Be Written In Perl 6")

2009-02-24 Thread TSa (Thomas Sandlaß)
On Tuesday, 24. February 2009 07:30:05 Carl Mäsak wrote: > >    my $foo is limited(100..200); > >    $foo = 5;                       # really does $foo = 100 > > Sounds like a good idea for a CPAN module. You can already do > something similar with the subset keyword, though: > > subset Percentage

Re: References to parts of declared packages

2009-02-13 Thread TSa (Thomas Sandlaß)
On Friday, 13. February 2009 20:30:24 Larry Wall wrote: > While taking a shower I refined the design somewhat in my head, > thinking about the ambiguities in package names when you're redefining. > By my previous message, it's not clear whether the intent of > > multi package Foo::Bar {...} > >

Re: returning one or several values from a routine

2009-01-06 Thread TSa (Thomas Sandlaß)
On Tuesday, 6. January 2009 22:01:36 Jon Lang wrote: > item($x) # Dwimmey use of item context. IIRC this is the same as $$x, right? Or does that extract the invocant slot without dwimmery? > list($x) # Dwimmey use of list context. > hash($x) # Dwimmey use of hash context. > $x._ # the Cap

Re: Smooth numeric upgrades?

2008-10-05 Thread TSa (Thomas Sandlaß)
HaloO, On Sunday, 5. October 2008 04:23:42 Darren Duncan wrote: > Note that just as integers are naturally radix independent, the unlimited > rationals should be too, and the latter can compactly represent all > rationals as a triple of integers corresponding roughly to a (normalized) > [mantissa,

Re: [svn:perl6-synopsis] r14585 - doc/trunk/design/syn

2008-10-05 Thread TSa (Thomas Sandlaß)
On Wednesday, 1. October 2008 21:54:12 [EMAIL PROTECTED] wrote: > If you apply an assignment operator to a protoobject, it is assumed that > you are implementing some kind of notional "reduction" to an accumulator > -variable. To that end, the base operator is dropped and a simple > -assignment

Re: What happened to "err" operator?

2008-09-07 Thread TSa (Thomas Sandlaß)
HaloO, On Thursday, 4. September 2008 03:39:20 Larry Wall wrote: > Another potential issue is that CATCH doesn't distinguish exceptions > coming from the current block from those coming from the subcall to a(). > So it could end up returning Failure from the current block when > you intended to fo

Re: arrayref/hashref in spectest suite

2008-08-20 Thread TSa (Thomas Sandlaß)
On Monday, 18. August 2008 20:38:05 Patrick R. Michaud wrote: > I would somewhat expect > a reference to be instead handled using a statement like > > $foo[1] := $bar; > > Comments and clarifications appreciated. I would also opt for copy semantics whenever = is used for assignment. But it see

Re: Allowing '-' in identifiers: what's the motivation?

2008-08-11 Thread TSa (Thomas Sandlaß)
On Monday, 11. August 2008 05:35:03 John M. Dlugosz wrote: > E.g. see : > > sub bar { > return 100; > } > sub foo { 50;} > sub foo-bar { >return rand(50); >} > if (foo - bar != foo-bar) { >print "Haha!\n"; > } Actually I can even imagine

Re: Some details of function return captures

2008-08-10 Thread TSa (Thomas Sandlaß)
HaloO, On Saturday, 9. August 2008 01:32:35 John M. Dlugosz wrote: > TSa Thomas.Sandlass-at-barco.com |Perl 6| wrote: > > If such a ReturnCapture could also be > > preliminary of some kind, then lvalue subs could be lazily resumed when > > the rvalue comes in. > > Can you elaborate on that? I don

Re: Differential Subscripts

2008-08-10 Thread TSa (Thomas Sandlaß)
On Saturday, 9. August 2008 04:41:46 John M. Dlugosz wrote: > Is this magic known to the parser at a low level, or is it possible to > define your own postcircumfix operators that interact with the > interpretation of the argument? My interpretation is that there is a Whatever type that most of th

meta_postfix:<*>

2008-07-13 Thread TSa (Thomas Sandlaß)
HaloO, I know that the hot phase of the operator discussions are over. But here's a little orthogonalizing idea from my side. The observation is that * can be regarded as repeated addition: 5 * 3 == 5 + 5 + 5 and ** as repeated multiplication. Now imagine having a meta_postfix:<*> that gives +* as

Re: Rakudo test miscellanea

2008-06-29 Thread TSa (Thomas Sandlaß)
HaloO, On Thursday, 26. June 2008 18:46:25 Larry Wall wrote: > Neither "is" nor "does" is quite right here, because the mathematicians > have seen fit to confuse representation semantics with value semantics. :) Hmm, but the uppercase types should hide the representation type. IOW, there's only

Re: fallback semantics of list methods

2008-06-16 Thread TSa (Thomas Sandlaß)
HaloO, On Saturday, 14. June 2008 18:43:05 Daniel Ruoso wrote: > Moritz convinced me that there's actually no real reason to support > > $nonlist.listmethod I wouldn´t do that either. But I come to that conclusion from the line of thought that it is generally a bad idea to block an Any slot in

Re: constraint imperative programming (CIP)

2008-06-16 Thread TSa (Thomas Sandlaß)
HaloO, On Monday, 16. June 2008 10:03:13 Ovid wrote: > --- TSa <[EMAIL PROTECTED]> wrote: > ... why do you think that > > the way to get at the constraint programming paradigm are the subset > > type definitions? > > Because I can't think of any other way to do it :) So I´ll try to come up with s

Re: Google index and subsets (two topics for the price of one!)

2008-06-16 Thread Thomas Sandlaß
HaloO, On Monday, 16. June 2008 10:11:49 Ovid wrote: > For example, should the pre/postfix '++' be > listed as having a side-effect? I think so. But the scope where these side-effects take place is important as well. In your second example below the side-effect is restrained to the subs scope. Th

Re: This week on parrot?

2008-05-07 Thread Thomas Fjellstrom
loser to Rakudo being reality." > > -- > Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance -- Thomas Fjellstrom [EMAIL PROTECTED]

RE: [perl #43269] [BUG] setline is tied to PIR source

2008-01-03 Thread Allam Reddy, Thomas
I would like to get unsubscribed from this list. Please help me. Thanks & Regards, Thomas Reddy A "The more I learn, the more I realize how much I don't know" -Original Message- From: Patrick R. Michaud [mailto:[EMAIL PROTECTED] Sent: Friday, January 04, 2008 12:05 P

Re: POD <-> Code entanglement

2007-06-14 Thread Thomas Wittek
ithout guessing) determine the documentation for a certain element. Also you could automatically test if every method/class/.. has been documented etc. Semantics are very useful in documentation, why throw them away? -- Thomas Wittek http://gedankenkonstrukt.de/ Jabber: [EMAIL PROTECTED]

Re: propose renaming Hash to Dict

2007-06-01 Thread Thomas Wittek
ed beef hash". To conclude, as hash definitely tastes better than a dictionary, we should stick to that name. ;) At least nobody can say that Perl is bad taste! -- Thomas Wittek http://gedankenkonstrukt.de/ Jabber: [EMAIL PROTECTED]

Re: propose renaming Hash to Dict

2007-06-01 Thread Thomas Wittek
.. So there is no perfect candidate in the above list. But in my opinion they are still more "english" than "hash". Additionally I believe it would be easier to learn that it's (e.g.) a dictionary that just is not ordered than learning a whole new word li

Re: explicit line termination with ";": why?

2007-05-14 Thread Thomas Wittek
n explicit marker for "don't stop here, keep going". That's the pro-semicolon reason that makes most sense in all comments that I've read so far in this discussion. But maybe that's just something where you have to get used to. -- Thomas Wittek http://gedankenkonstrukt.de/ Jabber: [EMAIL PROTECTED]

Re: Sigils by example

2007-05-14 Thread Thomas Wittek
chromatic schrieb: > On Monday 14 May 2007 15:48:24 Thomas Wittek wrote: > >> But it should be no problem to put out a warning/error at runtime (or >> maybe even at compile time) when a variable name clashes with a method >> name. > > Do you always know all of t

Re: Sigils by example

2007-05-14 Thread Thomas Wittek
Juerd Waalboer schrieb: > Thomas Wittek skribis 2007-05-15 0:48 (+0200): >>> The Perl Way: >>> $object.foo() calls the method called "foo". >>> $object.$foo() calls the method that is in the variable $foo. >> My way: >> someref = &somemeth

Re: Is Perl 6 too late?

2007-05-14 Thread Thomas Wittek
; I think the lack of value here outweights the "savings" of one character > per line. But even if the advantage of line termination is low (some characters saved, some people might say it looks cleaner), I cannot see any advantage of semicolon termination. -- Thomas Wittek http://gedankenkonstrukt.de/ Jabber: [EMAIL PROTECTED]

Re: explicit line termination with ";": why?

2007-05-14 Thread Thomas Wittek
d of the common cases. -- Thomas Wittek http://gedankenkonstrukt.de/ Jabber: [EMAIL PROTECTED]

Re: Is Perl 6 too late?

2007-05-14 Thread Thomas Wittek
Juerd Waalboer schrieb: > Thomas Wittek skribis 2007-05-14 0:42 (+0200): >> excessive use of special characters (/\W/). > > This seems to be "I don't like regexes". Ignoring for now that Perl 6 > regexes will be more verbose and thus easier to read for someone

Re: Sigils by example

2007-05-14 Thread Thomas Wittek
Juerd Waalboer wrote: > Thomas Wittek skribis 2007-05-14 22:20 (+0200): >> But I think that the name of an identifier (noun/verb, single/plural, >> the meaning of the word) already gives enough context to understand what >> type it is. > > [examples] You are right,

Re: Is Perl 6 too late?

2007-05-14 Thread Thomas Wittek
ason for them. > I agree. You need less ignorant colleagues. I'm not sure Perl 6 can fix > that. I don't think that it's a point of ignorance. Especially as they (and enough other people on the web) only seem to be ignorant regarding Perl. Strange, huh? > By the way, I&

Re: Is Perl 6 too late?

2007-05-14 Thread Thomas Wittek
tional hint for the type. -- Thomas Wittek http://gedankenkonstrukt.de/ Jabber: [EMAIL PROTECTED]

Re: Is Perl 6 too late?

2007-05-14 Thread Thomas Wittek
Andy Armstrong schrieb: On 14 May 2007, at 12:31, Thomas Wittek wrote: How did C, C#, Java, Ruby, Python, Lua, JavaScript, Visual Basic, etc. know? They didn't. If there is a new release, you always have to check if your code still runs. I think that may be the point I'm maki

Re: Is Perl 6 too late?

2007-05-14 Thread Thomas Wittek
f being open for ideas and discussing them from a neutral point of view? -- Thomas Wittek http://gedankenkonstrukt.de/ Jabber: [EMAIL PROTECTED]

Re: Is Perl 6 too late?

2007-05-14 Thread Thomas Wittek
Andy Armstrong schrieb: On 14 May 2007, at 11:51, Thomas Wittek wrote: I also can't remember that I ever named a variable like a "reserved word" or operator. And even if I could, I'd consider it to be bad style. How did you know which reserved words and operators were goi

Re: Is Perl 6 too late?

2007-05-14 Thread Thomas Wittek
warning for that. So maybe it'd be a good idea to completely drop it. People not only want code that _is_ sexy, but they also want it to _look_ sexy. At least almost everyone to whom I said, that I do most work in Perl, responded with some sentence containing the word "ugly" or &

Re: Is Perl 6 too late?

2007-05-14 Thread Thomas Wittek
eryone agreed that sigils (or forced semicolons, or tons of operators, ...) are more bad than good (and this seems like persuading the pope to allow homosexual muslims to marry with priests) the design process is probably too far to introduce such dramatic changes. Sadly. -- Thomas Wittek http://gedankenkonstrukt.de/ Jabber: [EMAIL PROTECTED]

Re: Is Perl 6 too late?

2007-05-13 Thread Thomas Wittek
e_of_the_co_6.html [2] http://www.google.com/trends?q=perl%2C+python+-snake%2C+ruby People not only want code that _is_ sexy, but they also want it to _look_ sexy. -- Thomas Wittek http://gedankenkonstrukt.de/ Jabber: [EMAIL PROTECTED]

Fwd: YAPC Europe 2007 Reminder - CFP and CFH Deadlines Approaching

2007-05-08 Thread Thomas Klausner
- Forwarded message from Michael Kr?ll <[EMAIL PROTECTED]> - From: Michael Kr?ll <[EMAIL PROTECTED]> Subject: [Conferences] YAPC Europe 2007 Reminder - CFP and CFH Deadlines Approaching Date: Tue, 08 May 2007 11:02:55 +0200 To: [EMAIL PROTECTED] Hi, The deadline to submit Hackath

Re: for ... else

2007-03-04 Thread Thomas Wittek
/Any/gather directly, I think. > On the other hand, there is no important reason for it because C< > > for @rray -> $el {} > if ! @rray {} > > should work. It's short and easy to understand. Agree, this looks good indeed. -- Thomas Wittek http://gedankenkonstrukt.de/ Jabber: [EMAIL PROTECTED]

Re: for ... else

2007-03-04 Thread Thomas Wittek
Darren Duncan schrieb: > At 11:17 PM +0100 3/3/07, Thomas Wittek wrote: >> Larry Wall: >>> : if ($item = 'foobar') { >> >> == of course ;) >>> If you actually wrote that, then you'll always find that the first >> > item ha

Re: for ... else

2007-03-03 Thread Thomas Wittek
ng where I'd say "wow, thats an easy solution to my problem!". It's a bit complicated, because you have to understand and combine several concepts. That's elegant. But not easy, I think. I think it's not simple enough for this simple kind of problem. -- Thomas Wittek http://gedankenkonstrukt.de/ Jabber: [EMAIL PROTECTED]

Re: for ... else

2007-03-02 Thread Thomas Wittek
" } end { say "The end has been reached. 42 not found." } empty { say "No items." } -- Thomas Wittek http://gedankenkonstrukt.de/ Jabber: [EMAIL PROTECTED]

for ... else

2007-03-02 Thread Thomas Wittek
stuff) { .. } } else { .. } many times. An else block would save keystrokes and would make the code more readable. Python also has it. What do you think? -- Thomas Wittek http://gedankenkonstrukt.de/ Jabber: [EMAIL PROTECTED]

Re: Y not

2007-02-21 Thread Thomas Wittek
the usability of a tool greatly influences it's acceptance and usage, this is a point, where we really should think about. -- Thomas Wittek http://gedankenkonstrukt.de/ Jabber: [EMAIL PROTECTED]

Re: Y not

2007-02-20 Thread Thomas Wittek
e to create an operator with the same name? zip(@a; @b) -> function @a zip @b -> operator Or would that lead to grammar ambiguities, that are impossible to resolve? -- Thomas Wittek http://gedankenkonstrukt.de/ Jabber: [EMAIL PROTECTED]

OT: Re: Web development I: Web::Toolkit

2006-09-20 Thread Thomas Wittek
reate a more semantic markup which can be styled using CSS. Of course there is more than just design. The cite attribute of the blockquote tag isn't supported by any browser AFAIK. -- Thomas Wittek http://gedankenkonstrukt.de/ Jabber: [EMAIL PROTECTED]

Re: CGI Session management (was Re: the CGI.pm in Perl 6)

2006-09-20 Thread Thomas Wittek
lines CGI.pm/Web.pm/foo.pm that covers the most common web-request tasks. Regards -- Thomas Wittek http://gedankenkonstrukt.de/ Jabber: [EMAIL PROTECTED]

Re: the CGI.pm in Perl 6

2006-09-19 Thread Thomas Wittek
ith the getting (and setting) of the incoming param values. A separate module, say HTML::Formgenerator, could easily use CGI.pm (or Web.pm,...) to get and set parameters: $value = $query->param('foo'); $query->param('foo','an','array','of'

Re: renaming "grep" to "where"

2006-09-19 Thread Thomas Wittek
don't think that this qualifies as a compelling > reason to change it - especially since it's so easy to add aliases via > modules As Smylers said above: Please, no more aliases. They only create confusion. Regards -- Thomas Wittek http://gedankenkonstrukt.de/ Jabber: [EMAIL PROTECTED]

Re: renaming "grep" to "where"

2006-09-18 Thread Thomas Wittek
e meaning, what's not always the case when you're reading code (of a language) that you haven't read for a while. Also you can usually type them more quickly as the word-charactes have a more prominent position than the special characters on most keybords. Best Regards -- Thomas

Re: the CGI.pm in Perl 6

2006-09-12 Thread Thomas Wittek
Steffen Schwigon schrieb: > Thomas Wittek <[EMAIL PROTECTED]> writes: >> An other acceptable solution would be to create a backwards >> compatible P6 CGI.pm and create a new Web.pm with an all new >> interface, like Mark suggested. > I would strongly expect the CGI m

Re: the CGI.pm in Perl 6

2006-09-11 Thread Thomas Wittek
rl5 CGI.pm interface. I'll use (python|ruby( on rails)?|.+)". That would be sad. > now: use CGI; >use CGI::HTMLgenerators; # Available separately, deprecated That'd be ok. Just my 2ct. -Thomas

Re: S04 - forbidden coding-style

2006-07-25 Thread Thomas Wittek
they are reserved words. What I wanted to say is that it would annoy me, if almost all operators and control-flow keywords are lowercase but a hand full of them has to be written uppercase. It would be especially annoying, if a keyword like "if" exists in both lower and upper case. Besides the fact that is looks ugly and is a bit harder to type, imho ;) -Thomas

Re: S04 - forbidden coding-style

2006-07-25 Thread Thomas Wittek
> Bearing that in mind, would the eye-socket-burning > > return $foo > IF $something; > > really be so bad? Operators/reserved words should be lowercase. Period. ;) I think that this would heavily break consistency, annoying new users. -Thomas

Re: Kwalitee metric: Broken Installer

2006-07-18 Thread Thomas Klausner
Hi! On Tue, Jul 18, 2006 at 12:27:30PM +0200, Steffen Mueller wrote: > we had a discussion about distributions with broken versions of > Module::Install. Using Module::CPANTS::Kwalitee::* as models I wrote a > simple plugin that calculates a Kwalitee metric "uses_broken_installer". Cool! May

Re: Mutil Method Questions

2006-06-26 Thread Thomas Wittek
Steffen Schwigon: > Thomas Wittek <[EMAIL PROTECTED]>: >> Maybe I just phenomenally misunderstood multi subs, but unless I >> did, I can't see why we want to have subs when we can have multi >> subs that can do the same and even more. > > I understand

Re: Mutil Method Questions

2006-06-23 Thread Thomas Wittek
site to this arbitrary looking distinction. Maybe I just phenomenally misunderstood multi subs, but unless I did, I can't see why we want to have subs when we can have multi subs that can do the same and even more. -Thomas

Name of this wiki

2006-06-15 Thread Thomas Wittek
t camel" :). I'd also like "Bikini wiki", sounds sexy, doesn't it? Unfortunately, this word does not have much in common with Hawaii, instead of both lying in the pacific ocean. -Thomas

Re: class introspection and extention

2006-06-12 Thread Thomas Wittek
max demmelbauer schrieb: > * how can i serialize objects (like the use Storable qw(freeze thaw) in > perl5.8) Try $object.perl(.say) as stated in http://svn.openfoundry.org/pugs/docs/articles/tpr.pod (or http://gedankenkonstrukt.de/perl6doc/articles/tpr.html ;) ) -Thomas

Re: $1,000 prize for Perl 6 Wiki written in Perl 6

2006-06-07 Thread Thomas Wittek
Damn, forgot the link. Thomas Wittek schrieb: > That's mainly what I did as stated in my first post[1]. [...] [1]: news://nntp.perl.org:119/[EMAIL PROTECTED]

Re: $1,000 prize for Perl 6 Wiki written in Perl 6

2006-06-07 Thread Thomas Wittek
for a wiki. And I think that such a (then collaborative) process might be a good idea for the definition of the syntax of this wiki. -Thomas

Re: $1,000 prize for Perl 6 Wiki written in Perl 6

2006-06-07 Thread Thomas Wittek
Udo Güngerich schrieb: > Thomas Wittek wrote: >> Unfortunately you probably have to throw away/heavily modify earlier >> increments, if you add features like a flexible syntax, which will need >> a different internal infrastructure. > > Well, if object-oriented desi

Re: $1,000 prize for Perl 6 Wiki written in Perl 6

2006-06-06 Thread Thomas Wittek
oo much development time. Maybe a "feature complete" version could be targeted as "the" Perl6-Wiki-Software. But before this one a "Lite Version", which will be used to have a wiki quickly available, could be developed. -Thomas

Re: $1,000 prize for Perl 6 Wiki written in Perl 6

2006-06-03 Thread Thomas Wittek
A. Pagaltzis schrieb: > * Thomas Wittek <[EMAIL PROTECTED]> [2006-06-03 22:30]: >> Interestingly it is very similar to Markdown although I never >> heard about it before :) > > Hmm, it doesn’t look similar at all to me? Headers (Markdown): # This is an H1 ## This is

Re: $1,000 prize for Perl 6 Wiki written in Perl 6

2006-06-03 Thread Thomas Wittek
x27;s not released yet and also not intended to be a base for a perl6-wiki. I'm just posting it to suggest a possible syntax. Interestingly it is very similar to Markdown although I never heard about it before :) Regards, -Thomas [1]: I believe everyone has to build one on its own ;)

Re: Where can I find a Perl 6 langauge reference? -> Conclusion

2006-06-03 Thread Thomas Wittek
Thomas Wittek wrote: > Where should I start, when I want to get myself a picture of the current > Perl 6 language features and syntax? To conclude this, I'll give a list of online docs I find interesting about learning Perl6: 1) Synopses: http://dev.perl.org/perl6/doc/synopsis.ht

Re: CPANTS is not a game.

2006-05-29 Thread Thomas Klausner
Hi! On Fri, May 26, 2006 at 11:35:14PM +1000, Adam Kennedy wrote: > What the hell is the "run" thing in the latest run... is the run just > half-way through or something? that was a bug in the templates. resolved now. (FYI: 'run' stores when the data was analysed (using what version of cpants

Re: CPANTS is not a game.

2006-05-29 Thread Thomas Klausner
Hi! On Thu, May 25, 2006 at 09:51:06PM +0200, Philippe "BooK" Bruhat wrote: > Le mardi 23 mai 2006 ? 21:56, Thomas Klausner ?crivait: > > > > And no, I won't take the fun out of CPANTS. > > Then why did you filter out the Acme modules from the prereq li

Re: CPANTS is not a game.

2006-05-26 Thread Thomas Klausner
Hi! On Thu, May 25, 2006 at 09:51:06PM +0200, Philippe "BooK" Bruhat wrote: > Le mardi 23 mai 2006 ? 21:56, Thomas Klausner ?crivait: > > > > And no, I won't take the fun out of CPANTS. > > Then why did you filter out the Acme modules from the prereq li

Re: CPANTS is not a game.

2006-05-23 Thread Thomas Klausner
Hi! I missed most of this discussion due to work and a very important shopping trip to IKEA (well, maybe not that important, but I'll let you argue this out with my girlfriend...) I'm also a bit exhausted now, so here are just some semi-random comments on this thread: - I think the biggest probl

Where can I find a Perl 6 langauge reference?

2006-05-18 Thread Thomas Wittek
there a point to start? Thank you! -Thomas [1] http://dev.perl.org/perl6/doc/synopsis.html

Re: best of perl6 for tutorial

2006-05-12 Thread Thomas Wittek
herbert breunung schrieb: > its understood that i will try, once finished to translate it for the > pugs trunk. Might have been better vice versa. First write it in english and then translate it to german. This way you would've got more responses on that... -Thomas

Re: W3C validator

2006-05-09 Thread Thomas Klausner
Hi! On Mon, May 08, 2006 at 09:01:19PM +0300, Gabor Szabo wrote: > I checked it again, one can download the source code of their service > from here http://validator.w3.org/source/ > and it is even packaged in some of the linux distros. > > (It is of course slightly outdated on Debian) > > Someo

  1   2   3   4   5   >