Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^4: In praise of Perl's object system.

by xiaoyafeng (Deacon)
on Sep 18, 2010 at 07:53 UTC ( [id://860609]=note: print w/replies, xml ) Need Help??


in reply to Re^3: In praise of Perl's object system.
in thread In praise of Perl's object system.

A little OT, sorry for any inconvenience.

And would you care to explain the difference between a "language" and a "tool language"? I see a programming language as a tool to build programs with,

What is a tool language? I think it should be meet below three demands(suggestions are welcome ;)):

  • get things done quickly.
  • easy/not strict grammar.
  • powerful ability to control system.
Tool language is for system admin, DBA, or such else. Because they are a special part in IT circle. they maintain a system or a program which they don't know deeply. They are not programmer; They won't be interested in inherit, delegation or something else; all they concern are whether is a easy-used hammer to mend the system fast. That is why they like perl5,awk but not java, C++. Okay, as I mentioned before, perl6 OO is great, but it, I mean OO, is meaningless to the script less than 300 lines.

Again, I don't say perl6 is not good, I just say perl6 is too like a regular language or say language for teaching. I hope to see perl6 can provide a way to those people are not received formal programming training.





I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction

Replies are listed 'Best First'.
Re^5: In praise of Perl's object system.
by moritz (Cardinal) on Sep 18, 2010 at 12:17 UTC
    I see what your concern is, and it's one I don't share at all.

    Just because Perl 6 is a fundamentally object oriented language doesn't mean you have to write classes to use it. Hello World is still just say "Hello World", and not class Hello { public static void main(Array args) { system.out.println("Hello, World"); } }.

    In fact Perl 6 can be used quite well as an imperative or even functional language, and most of day to day Perl 6 usage is small, one-off scripts.

    I can recommend jnthn's talk Perl 6: For Little Tools and Large Applications.

    Perl 6 - links to (nearly) everything that is Perl 6.

      Thank moritz and jnthn! The article is fabulous. And the section of for the small tools perfectly answer my question.

      BTW. Native Call Module sounds great. Is it a builtin module of Rakudo? And does perl6 have more powerful mechanism like XS in the future? It seems that S21 has been a little bit stale.




      I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction

        NativeCall.pm is included in blizkost, and is installed by default in the Rakudo Star distribution.

        Besides that I don't know anything about the Perl 6 <-> C interaction, but we do want to avoid the XS mess for Perl 6.

      Thanks for the link to jnthn's talk! Dunno how I missed that. There should be a link to it on perl6.org/documentation, IMO.

      BTW, noticed what looks like a 2 typos:

      • page 25: no closing single-quote mark at the end
      • page 58: after "destination" there's a '>' and then a small closing french quote mark.
Re^5: In praise of Perl's object system.
by Anonymous Monk on Sep 18, 2010 at 09:27 UTC
    perl6 的目的是为了更好的方便使用,仅此而已,语法糖只是个表面。
Re^5: In praise of Perl's object system.
by Anonymous Monk on Sep 18, 2010 at 09:31 UTC
    你的担心是多余的,据我所知,perl6 只是把perl5 能做到的的变的更简单,把perl5不能做到的变的可以做到。

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://860609]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-03-29 05:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found