In retrospect... what is the vote now?

Generics are evil!
If you are into history, here's a two year old thread, from which nothing I have seen has changed the basic concern of mine...
http://forum.java.sun.com/thread.jspa?threadID=417410&start=0&tstart=0
Wonder what the consensus is now?
best, etc.

Which means you can guarantee the type will becompatible with the derived type. Are you suggesting
that because you don't think they are that useful is
a good reason to not have them? A lot of designs can
use them and use them well.
If a selftype is delcared in a field or as a method
parameter, the only valid compadible assignment to
that type would be this (or some value returned by a
self type) since you would not know what your actual
implementing class is.
I simply do not see how you can get new instances of
this's class without using clone.I don't know why you assume that self-types are only related to retuning things. Generic parameters are also used with method arguments and variables and parameters to members.
That seems to me to be an incredibly stupid thing todo. Generally, the first thing done with the
reference returned from clone is cast it to the type
of the Object that returned it. I can't imagine a
situation where I'd want Foo.clone() to return a Bar
where Bar isn't a subtype of Foo.
Ok, sure it is, but code currently can do it, so we
can't go back and change it.Why do you think having self-types would require us to change the signature of clone()?
Why even have arrays?To implement ArrayList. They are here now, and they
are here to stay, the way they are built make them
generic incompadible.
Did I give the impression that I didn't know whythis was the case?
Why did you bring it up then?I was answering a question about what the problems exist with generics. It was in this thread. You can read it if you are still not clear.
Some other solution. One that has true runtimesupport.
You are more likely to not need runtime support then
you would be. You can add in your own runtime support
if you really need to, but the current design adds no
overhead to code if it were generified.Wrong. There is runtime support in the current implementation that does add overhead. It's just not very useful.
Then my idea of how generics are not a complete
solution is quite a bit different from yours.
E.g.
1. Why is method only generified on the class it was
defined, and not on its parameters? Its that generic
parameters are fixed, you could declare a Method
class for invoking all methods with 1 parameter, but
you would need another class for 2 parameters.An interesting idea. It doesn't seem to be something many people are concerned with.
2. I would like a way to declare a method that takes
in an array with a speficied size.I guess you could frame that as generics. Interesting but not something I'm concerned about.
3. I want a method parameter that takes in a
Rectangle that will never change, or return a
Rectangle that does not change, sure I could declare
a class for a constant Rectangle, but I would need to
declare classes for every class I wanted to use like
that.This is definitely not generics. This is what most people who want the const keyword to be supported would like it to do. There are RFEs on this and have been since long before generics were developed.

Similar Messages

  • What is the policy now?

    I have an 8g iPhone and the speaker just went on it.....i can no longer hear music or have any alerts or ringtones comes through. I will be making an appointment with the apple genius but what is the exchange policy now? Will i get a refurb right then and there or will i have to pay the $60 for a loner while mine gets fixed?

    I suspect not great given the state of stocks of the existing models, but you never know of course.
    By the way, the policies are listed on http://www.apple.com/support/iphone/service/faq/index.html

  • What is the difference now between n73 normal and ...

    n73 normal firmware 4.0726.2.0.1
    n73 music edition 3.0705.1.0.31
    after new firmware for n73 normal
    add music player
    add support for 4 GB memory card
    the old firmware for n73 normal not support (music player advanced with equaliser) now support by firmware 4.0726.2.0.1
    n73 music edition 3.0705.1.0.31
    now not support 4 GB Memory card ?
    why the cost of n73 me very expensive 10% and nokia n73 very good price ?

    yes 2gb mini-sd and a better headset (additonal play/pause,next,prev,stop keys)
    n73: n73me:
    and 2 extra themes (stave and waveform)
    and multimedia key:
    n73:
    short press: configurable 5 ways shortcut menu (joystick up = program x, jockstick left = program y etc.)
    long press: music player
    n73me:
    short press: music player
    long press: radio
    and it is black =D
    but there is also an n73 music edition lite with less accessoires (smaller sd-card or no headset or non of both...)Message Edited by okidal on 31-Jul-200708:32 PM
    Message Edited by okidal on 31-Jul-200708:47 PM
    V21.0.025 » 04-09-2007 » RM-356 5800 XpressMusic » Language pack 01

  • I've been hearing in todays news about a virus that can affect mac computers.  When purchasing my Mac computer I was informed I didn't need virus protection.  What do you advise now?

    Currently my mac doesn't have additional virus protection software.  When purchasing my mac 4 years ago I was told it wasn't necessary because it was so rarely needed due to Mac's Encryption etc.  With today's news I hear that it possible the current virus or bug that is out there is aimed at Mac's especially.  What is the advice now?

    It's not a virus. It's just the latest scare tactic promulgated by popular media outlets to ensure the uninformed among us remain uninformed. The fact that you (or they) characterized it as a "virus" is proof of that, on its face.
    What is the advice now?
    If you are running a web server, apply the patch by downloading it from the GNU project archive. If you don't know what that is, how to obtain it, or how to apply it to your server, then you are not affected and there is nothing you need to do.
    Apple announced they are "working to quickly provide a software update for our advanced UNIX users."
    There are plenty of bad things that could happen to a system due to existing vulnerabilities, known or unknown. There is no reason for any more concern today than there has ever been. Bash has been included with OS X for years, perhaps since its inception, and the particular flaw that was just discovered may have existed for years prior to that.
    Similar vulnerabilities may also be discovered and exploited, now or in the future. The resulting effects, if there are any, cannot be accurately predicted.
    Until then:
    Ignore hyperventilating popular media outlets that thrive by promoting fear and discord with entertainment products arrogantly presented as "news". Learn what real threats actually exist and how to arm yourself against them.
    Do install updates from Apple as they become available. No one knows more about Macs and how to protect them than the company that builds them.

  • What is the current  XI  job market status

    Xi Guys,
    I am an experienced Abap developer  with just rolled off my first successful XI project.
    For my next project I am really want to stay in XI arena and would not like to go back to Abap .
    I wish to ask you your opinion on - what is the XI current job market status in the US?
    I am hearing different things u2013 some are saying XI is not a good place to be, because there are not that many xi projects and there are too many xi consultants u2013 therefore if job is difficult to find, rate is low, slowdown etc.
    Others are saying exactly the opposite -xi market is very good and it is growing , so there are jobs...
    If first is true I would not like to waste time and effort. So your inputs as xi gurus will be interesting for me, before jumping to any conclusions.
    Of course more info like which exactly XI skills are in better demand and what are the trends now will be also interesting to hear.
    Let me know what you think and what is your experience.
    Appreciate your replies!
    Jon

    HI Jon,
    Your question is pretty interesting... Well WHO can tell the future...Only GOD...:-))
    Todays market is volatile. AS per current market situations we can just forecast about XI requirments, it may be right or may go wrong after few years.
    But one think I could assure you is if you have good knowledge then you can servive in any Market situations.
    Curently there are many XI consultants available but can you guess how many are of them XI experts...just few of them.
    If you see the previous developments in XI arena, then it will ndicate you that you should be updated with latest version of knowledge else you will stay out of the race.
    So before getting involve in XI, be sure that you are ready to  survive  in slag time of Market as well as enjoy it on on peak time.
    Tomorrow Market may get down or may be at boom for XI, but there will always be requirment for good XI knowledge
    Thanks
    swarup

  • I have lost the user name and the password and the phone now stopped the end of updating to IOS7

    the phone now need user name and password at the end of updating the ios system from 6 to iOS7
    what is the solution now and the phone now like a piece of iron

    Have you tried adding your comcast account using the built in IOS mail app.
    If you're using the Comcast Xfinity app, then look at their support site or ask the app developer.

  • 1)Now I use Lightrom 5.7 how to upgrade to 6 or CC? 2) What is the difference between 6 and CC vercion? 3) When I used lightromm 3, I could see inEXIF the distance in meters till the object I took, in the later virsions that function disappeared, it is ve

    1)Now I use Lightrom 5.7 how to upgrade to 6 or CC?
    2) What is the difference between 6 and CC version?
    3) When I used lightromm 3, I could see in EXIF the distance in meters till the object I took, in the later virsions that function disappeared, it is very sad  I am stiil waiting and hope that it would be possibble in the new  versions. Or this indication may  possible by setting?

    1)Now I use Lightrom 5.7 how to upgrade to 6 or CC?
    Purchase the standalone upgrade from here: Products
    Download CC version from here: Explore Adobe desktop apps | Adobe Creative Cloud
    2) What is the difference between 6 and CC version?
    See this comparison chart: Compare Lightroom versions | Adobe Photoshop Lightroom CC
    3) When I used lightromm 3, I could see in EXIF the distance in meters till the object I took, in the later virsions that function disappeared, it is very sad  I am stiil waiting and hope that it would be possibble in the new  versions. Or this indication may  possible by setting?
    Rob Cole's ExifMeta plugin displays the Subject Distance field (and much more).  Unfortunately, his Web site appears to be down again.  He used to be very active here, but he hasn't posted in several months.

  • HT1349 I lost/had my iPhone stolen. Tried using Find My iPhone and it's offline. It was set up. What do I do now? Do I report it stolen? What is the best way in getting back my iPhone if any? Thank you in advance.

    Tried using Find My iPhone and it's offline. It (Find my iPhone) was set up. What do I do now? Do I report it stolen? What is the best way in getting back my iPhone if any? Thank you in advance.

    Find My iPhone is good for misplaced iPhone but not good for thief and it was never meant to be.
    You chance of getting it back is very small.
    There are a few things you can try.
    Try remote lock/wipe your iPhone through Find My iPhone.
    https://www.icloud.com
    You can report to the police, cell carrier (expensive cell charges for international calls, roaming etc)
    Change all the passwords used in iPhone: Apple ID, E-mail, Bank Account ....
    http://support.apple.com/kb/HT2526

  • When trying to update my iPad 2 to iOS 7 I keep getting the message that it has stopped because the file is full.  There is plenty of room on the iPad.  It also says to check the settings.  What do I do now?

    When trying to update my iPad on iTunes I keep getting a message that the download has stopped because the file is full.  There is plenty of space on the iPad.  Also, the message says to check the settings.  What am I supposed to check in the settings?  What do I do now?

    I have the same problem. It is only with tv shows and only with programs I have downloaded after the software update.
    Apple support sent me the above link too....but it doesn't solve the problem...my computer is authorized and the content is in my library and will play on my Mac air, but it will not sync the tv shows, it keeps saying my computer isn't authorized for it.
    No answers here, but you are definitely not alone with this issue.

  • My Iphone will not let me download apps because it says my apple id is disabled, I have changed my password four times and it still is saying the same thing. What do I do now?

    My Iphone will not let me download apps because it says my apple id is disabled, I have changed my password four times and it still is saying the same thing. What do I do now?

    Contact iTunes to re-enable your account at expresslane.apple.com
    You can reach them by chat or email.

  • I am a new mac user and I switch to mac due to the graphics that it brings. I do website in pc and I heard iweb is the best.NOW i heard that iweb will be discontinue. so what is the best application there for website using MAC OSX lion?

    I am a new mac user and I switch to mac due to the graphics that it brings. I do website in pc and I heard iweb is the best.NOW i heard that iweb will be discontinue. so what is the best application there for website using MAC OSX lion?

    It is now confirmed  that iWeb, and iDVD, has been discontinued by Apple. This is evidenced by the fact that new Macs are shipping with iLife 11 installed but without iWeb and iDVD.
    On June 30, 2012 MobileMe will be shutdown. However, iWeb will still continue to work but without the following:
    Features No Longer Available Once MobileMe is Discontinued:
    ◼ Password protection
    ◼ Blog and photo comments
    ◼ Blog search
    ◼ Hit counter
    ◼ MobileMe Gallery
    All of these features can be replaced with 3rd party options.
    I found that if I published my site to a folder on my hard drive and then uploaded with a 3rd party FTP client subscriptions to slideshows and the RSS feed were broken.  If I published directly from iWeb to the FPT server those two features continued to work correctly.
    There's another problem and that's with iWeb's popup slideshows.  Once the MMe servers are no longer online the popup slideshow buttons will not display their images.
    Click to view full size
    However, Roddy McKay and I have figured out a way to modify existing sites with those slideshows and iWeb itself so that those images will display as expected once MobileMe servers are gone.  How to is described in this tutorial: #26 - How to Modify iWeb So Popup Slideshows Will Work After MobileMe is Discontinued.
    It now appears that the iLife suite of applications offered on disc is now a discontinued product and the remaining supported iApps will only be available thru the App Store from now on. However, the iLife 11 boxed version that is still available at the online Apple Store (Store button at the top of the page) and those still on the shelves of retailers will include iWeb and iDVD. Those two apps were listed in small, gray text on the iLife 11 box that I bought.
    Personally, if I didn't already have a copy I would purchase one to have it for reinstallation purposes if ever needed.
    This might be of some interest to you at this time: Life After MobileMe.
    OT

  • I am trying to home share with my sister. I have it down to where I can copy the songs, but I just don't have the "import" button. So it won't allow me to do anything with the songs from her computer. What should I do now?

    I am trying to home share with my sister. I have it down to where I can copy all the songs I want, but it won't allow me to import them because my iTunes doesn't show the "import" button at the bottom. So what do I do now?

    I have reinstalled the drivers. I watched it install the realtec and cirrus drivers. Hovering the mouse over the speaker icon says 'speakers: HP'. They are actually 'Creative'. 'Properties' indicates 'IDT High Definition CODEC' and 'This device is working correctly'.
    Driver details gives 'c:\Windows\system32\drivers\dmk.sys'.
    There is still no sound, although the little level meter on the control shows a green bar rising and falling.
    Obviously, it thinks it's working, but there's no connection to the speakers. They're not muted, either. I checked that too.
    Any other ideas?
    Thanks.

  • MacWorld e-mail on ms apps had a rebuttal saying iwork now free, but the app store shows it at $30 for the 3 apps, so what's the story?

    So I got my Mac World e-mail, it talked about the free apps from MS (Word, Excel, PowerPoint, OneNote), so I downloaded them, in the comments section of the article someone that didn't like them said there was no need as iWork was free and no subscription needed.
    Anyway, after letting the ad for MS 360 play out, word opened, but it wouldn't let me access my skydrive, now called onedrive, it was grayed out and needed the 360 subscription, needless to say I deleted all of the office apps and based on the comments section of the article I went back to the app store to get iWork.
    They are not free, each app is $9.99, according to the app store, so tell me is there something I'm missing, there were others saying it was free, so what is the truth here?
    Currently I use Textilus for creating documents, well one or two, writing on the ipad is horrible, and it still doesn't recognize my printer or any documents I save in Textilus.  I have to save the page as a picture, open up the Epson app, select photos, and print.
    I was hoping something useful would be available, but it looks like that's not going to happen.

    Beginning last September (I beleive) the three iWorks app are free only for qualifying newly purchased devices (http://support.apple.com/kb/HT5913)
    And yes, on the iPad, MS office apps can only be used to read files unless you have an Office 365 subscription.
    Can't respnd to what Textilus does or doesn't do when it comes to printing. That might be a question for the app vendor.

  • I have replied to you three times now without reply. I DID NOT authorise a payment of £9.99 for NowTV. What is the solution to getting my money refunded. I think you assume I will go away after being Ignored. No I will not go away. I find now that you hav

    I have replied to you three times now without reply. I DID NOT authorise a payment of £9.99 for NowTV. What is the solution to getting my money refunded. I think you assume I will go away after being Ignored. No I will not go away. I find now that you have DISABLED MY APPLE ID. Is this a punishment you use to anyone who takes up a stand against charges being made unauthorised on their account?. Please tell me why you have disabled my account. When will my account be restored? If not when will you refund ALL my purchases made to APPLE/ITUNES? I can then move on to another brand and hopefully better customer service. After reading articles regarding APPLE ID DISABLED it appears common practice from your company to DISABLE anyone's account if they question unknown charges. Please reply with your intentions regarding  the unauthorised payment and the DISABLING of my account.
    David Forrester.
    Sent from my iPad
    On 18 Mar 2014, at 09:20, iTunes Store <[email protected]> wrote:
    Follow-Up: 319042795
    Hello again,
    I wanted to send a quick note to see if you are still experiencing any difficulties with the iTunes Store. Resolving your issue is important to me, so please don't hesitate to reply if you need any further assistance.
    Sincerely,
    iTunes Store Customer Support
    http://www.apple.com/support/itunes/ww/
    Dear David,
    Welcome to iTunes Store Customer support.
    I understand that you have been charged an additional 9.99 GBP for a purchase that not authorized. I know how eager you are to know more about this purchase and I am happy to look into this for you.
    David, the purchase worth 9.99 GBP was for a day pass from "NOW TV for Apple TV." To review your iTunes Store account's purchase history, please follow the steps in this article:
    iTunes Store &amp; Mac App Store: Seeing your purchase history and order numbers
    http://support.apple.com/kb/HT2727
    Please reply to this email and let me know if this purchase was unauthorized.
    Thank you for being an iTunes Store customer. Have a great day!
    Sincerely,
    iTunes Store Customer Support
    http://www.apple.com/support/itunes/ww/
    Lang_Country: en_gb
    User Storefront: UK
    Concern Type: Problem Not Listed
    Web Order #:
    Content Title: NOW TV Day Pass
    Provider Name: BSkyB
    Track IDs: []
    Purchase Date : 2014-03-16 12:33:48 Etc/GMT
    Purchase Device : Apple TV
    Comments : I am being charged for what is listed plus another _9.99 for Apple TV pass. Did not authorise this _9.99 charge and not sure what it is exactly.
    <Personal Information Edited by Host>

    This is a user-supported board. You are not addressing Apple here. Nor is it a good idea to post your private information to a public forum. You should edit your post immediately.
    Unfortunately no one here can access your support history. You must respond to the emails directly.

  • My phone is not showing up in itunes.  I want to sync it.  I have a MAC and I have restarted the phone, it's charged, I have the most current version of itunes.  What do I do now?  It says to reinstall itunes if you have windows but not for mac.  Help!

    My phone is not showing up in itunes.  I want to sync it.  I have a MAC and I have restarted the phone, it's charged, I have the most current version of itunes.  What do I do now?  It says to reinstall itunes if you have windows but not for mac.  Help!

    With your phone plugged in, open Image Capture and see if the iPhone shows up.  If not, you are having a sync problem.  If it shows up in Image Capture, but not iTunes, I'd delete iTunes and reinstall it.

Maybe you are looking for