The Artima Developer Community
Sponsored Link

Scala Buzz
“Object Main extends Application” considered harmful

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
David MacIver

Posts: 54
Nickname: drmaciver
Registered: Jan, 2008

David MacIver is a software developer at Trampoline Systems who uses Scala for personal projects.
“Object Main extends Application” considered harmful Posted: Apr 14, 2008 7:57 AM
Reply to this message Reply

This post originated from an RSS feed registered with Scala Buzz by David MacIver.
Original Post: “Object Main extends Application” considered harmful
Feed Title: David R. MacIver
Feed URL: http://www.drmaciver.com/?feed=rss
Feed Description: Miscellaneous ramblings about programming and software engineering. Common themes include Scala, Java and Haskell.
Latest Scala Buzz Posts
Latest Scala Buzz Posts by David MacIver
Latest Posts From David R. MacIver

Advertisement
You're probably all familiar with the standard Java invocation for creating an applicaiton's start point. class Main{ public static void main(String[] args){ // code } } Scala has a nice feature which lets you use a trait to define your application where you don't care about the initial arguments. object Main extends Application{ //code } What happens is that Application ...

Read: “Object Main extends Application” considered harmful

Topic: Scala for NetBeans Screenshot#8: Working on Indexer Previous Topic   Next Topic Topic: New Blog

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use