Request: Make Keyword 'function' Optional for Parameterless/Void Functions

Say I have function
doJob (startThis:function(), whenDone:function()) When I am using this function doJob(), it would be nice to be able to do
doJob( {code_to_do_something}, {code_to_do_something});
// instead of
doJob( function(){code_to_do_something}, function(){code_to_do_something});Or be able to define a parameterless void function as
var hello = {println ("Hello")}; and invoke that function using form
hello();This would eliminate some verbosity introduced by the function keyword.

@PhiLho
Yes, to you just 10 character is not a big deal. But to the rest of us who have to keep repeating those 10 chars over and over in larger applications it does become a big deal.
Your example of ar foo = {fooCall("Stuff"}; is misplaced. Why would you trap a non-void function call inside a void fn? If fooCall returns something then obviously the compiler would try to return via the calling function and this is a problem (as you point out) regardless of what the syntax is.
My suggestion is more toward bringing sensible syntax shortcut/sugar in the language.

Similar Messages

  • Feature Request: Make a Setting Option for Export - Media - What to Render

    As I just changed after many years with Premiere Elements to Pro, I certainly find many things just anconversant.
    But there's one thing I really can't take: When I'm trying to render a project, there's a small selection list near the bottom of the "Export Media" window saying "export area". Here I can choose between "complete sequence", "work area", "sequence in/out" and "defined by user". This option jumps always back to "work area"!
    That's at least for me very unconveniant, because in 99+ % of my renderings, I need "complete sequence". Normally the software remembers the last used setting, but not in this case. I can imagine that one can fight about what's the best default setting: I Guess everyone is using Premiere differently. So in my opinion a predefined setting option would solve best for all: Just add one mor setting in the Presets section, maybe in "General" or make a new rubric "Export" or something. Just a place where everyone can predefine which setting for the export media area option he likes.
    No big deal, just one more presettings option!
    I hope I could make myself clear what I'm meaning
    Thanks in advance!

    Hi Lutzz,
    When I'm trying to render a project, there's a small selection list near the bottom of the "Export Media" window saying "export area". Here I can choose between "complete sequence", "work area", "sequence in/out" and "defined by user". This option jumps always back to "work area"!
    That's at least for me very unconveniant, because in 99+ % of my renderings, I need "complete sequence".
    You can create a feature request here: http://adobe.ly/feature_request
    Thanks,
    Kevin

  • How to make default personalization options for users

    Hi all,
    How can I make default personalization options for users, so that those will the default options when the user opens the portal BSP applications. Those will be the standard, at later point of time if they want they can personlalize some other fields, but earlier fields will be the default fields and user cant be able to change them.
    Thanks
    Murthy

    Hi Murthy,
    If you use IMG (crmc_blueprint_c) to customize PCUI appl than you can use the personalization feature. If you select 'Not in List' in the IMG for the field in the fieldgroup structure, than this field by default will not be viewable in the List View and will not be checked as 'Visible' in the Personilzation link. So by not selecting 'Not in List' you are giving that field to be viewable and all other fields are available for users to personalize by default.
    If you have maintained the 'List View' using the CRM Designer, than most likely you would lose the above feature, as SAP Standard code considers the CRM Designer as high level of customization.
    Thanks
    Harsh

  • ICal feature requests  1)reminder pref option for default to DAYS ahead (+)

    Hi, Appleniks,
    My preferred calendar event warning is one day ahead. This isn't available as a default option. Therefore I have to set it custom every single time I add an event. Would appreciate it if I could set this as a default in the prefs.
    Would also appreciate the option to set more than one reminder. (I could swear this used to be available.)
    TIA

    Greetings,
    Not bad ideas.
    Submit feedback to Apple to let them know: http://www.apple.com/feedback/ical.html
    Cheers.

  • Add soundfiles (voice over) to existing project – how do I make the sound optional for the participant to listen to?

    Hi! I´d like to import soundfiles to an existing project. This is what I´m trying to do: I´d like to have a symbol on each page with a clickbox on top. When (if) the participant wants to listen to the voice over, he/she can click on the symbol and the voice is activated. Right now, the sound file is activated directly when I open the slide. Can anyone give me some advise? Kind regards, Gunilla

    It helps if you mention the version you are using. Because you talk about 'click box on top of a symbol' you probably use an older version. Since shapes appeared, that can be used as buttons and can be filled with any image or text, this is no longer necessary: Turn an Image into a Button - Captivate blog
    In that case you'll need to replace the slide audio (you see it on the Timeline) by object audio. Audio files can be linked to any objects, and they'll start to play when the object gets visible. First approach would be by creating an audio object. This blog post offers some details: Audio Objects: Control them! - Captivate blog
    Second approach: use the command 'Play Audio' triggered by the shape button (or click box). I'd recommend strongly not to use this command as a simple action, unless you are happy with the playhead advancing at the same time: Why choose Standard over Simple action? - Captivate blog  Use a standard advanced action instead. If you were on Captivate 7 or 8 I would advise to use a shared action.
    I hope you do have that command, think it appeared with CP6. It has the advantage that when another button is clicked that plays another audio clip, the first one will stop automatically. If you have to use an audio object, you'll have to hide the object to have the audio stopped.

  • Deletion of request from init option for source system

    Hello Experts,
    Iam using 3 IP.
    IP for init load with data transder, IP for init load without data transfer & Delta.
    now with data transfer IP is not used.
    i trigered "without data transfer IP", then accidentally "triggered with data transfer IP".
    then manually made the request red & deleted data by right clicking datasource-->manage & deleted all the requests(2) available.
    now before i load init without data transfer request exists in "init option for source system".
    when trying to delete IP
    "There are active init selections in source system for this data source. Therefore, only ALL init selections can be deleted at once. Do you want to delete all init selections (all channels)?"
    when i choose yes....it takes a long time & gives run_time error status.
    Guys, this issue is solved.
    I deleted the without data transder first.
    now when I load delta, I got error.
    "Job terminated in source system --> Request set to red"
    regards
    KV
    Edited by: K V on Apr 10, 2009 2:16 PM

    Hi KV.........
    U r doing init without data transfer..............it means it will not pick any records...........it will just set the init pointer and along with that Delta queue will get generated.........after that whenever any changes will be done.........or any new records will come.......it will get reflected in the Delta queue.......
    So next time when u run the delta load..........data will be fetched from the Delta queue...........
    So check the delta queue.......it may happen that there r no new or changed records..................
    So check............may be delta queue is 0..............
    Also check the update mode for the datasource in LBWE(if Logistic datasource)............if the update mode is Queued delta or unserialized V3 update........then data will first get accumulated in the Extract queue(LBWQ) or update table respectively.............so to fetch records in the Delta queue u hav to schedule the V3 jobs in LBWE............otherwise Delta queue will be empty and fetched records will be 0........
    Regards,
    Debjani......

  • Feature Request: Please make a 5.0 (5.1 without woofer) option for surrou

    Hello Creative,
    please make an 5.0 option for your soundcards. There are still some people out there with high-end speaker systems. "These" people don't need a subwoofer, because they have full range front speakers (40hz -20khz +-3 db and at 30 hz -6 db). Most surround reci'vers have a bass management where you can redirect the LFE ( the ./"effect channel"/the subwoofer)to the fronts. So pls implement an LFE to front redirection into your drivers for audigy and x-fi, I think this can't be too difficult, because there are 4.0 and 2.0 option available.
    That is possible with my cheap onboard soundcard :-), so please show that creative is still the captain :-).
    It's no fun when you can't use your center speaker in games because of that.Message Edited by mjusik on -27-2005 03:54 PM

    I think there is no problem in doing that yourself. As LFE is currently only used by DVD Movies, (and EAX 5.0, if the developer implements that specific part), you only need to do redirection with your AC-3 decoder. If you download AC3Filter, you can use a matrix to say where every signal should go, essentially doing the redirection process you speak about.

  • Do you have an option for block all incoming message and request EXCEPTED messages from my contacts?

    Please help!!To whom it may concernDear Madam/Sir who works for Skype & Microsoft  Dear all who can really help,  Do you have an option for block all incoming message and request EXCEPTED messages from my contacts? or Do you have any solution to solve my problem from begin to now in present time?  Even though, I set the Privacy settings: - Allow calls from... "people in my Contact list only"- Automatically received video and share screens with "people in my Contact list only"- Allow IMs from "people in my Contact list only"  I still received unknow users sent me messages in every day, contact requests etc. And they're all clearly spammings and identity thefts.  I only wanna contact with my family and my freinds here with Skype via my Windows device and my mobile phone (w/Android OS).  And this is the only way to contact with them, because they could use Skype only in overseas.  BUT I don't need new friend from other unknow Skype member.   I keep blocked all unknow spammers in every day.  However in this morning, I feel so scared with Skype on my mobile, I looked at my mobile Skype, I saw it automatically showed me the list of all blocked members. BUT they were all unblocked (contact unblocked) by my mobile (Android version) Skype itself automatically, and listed them one by one on the screen, and about 30 seconds later, they all were disappeared suddenly.  I don't know what do to now, is it indicating my account was hacked?And how could I found out all those members again and block them again and delete all of them for ever?  I appreciate if you would improve the privacy protection. Thank you very very very much. 

    Hrm... that may be true and this may be a function of the phone email client that Apple just doesn't do.
    No, I can easily MANUALLY delete the messages. I would prefer if I didn't have to do it twice, tho. Once on the mail server and once on the phone.
    What I think the phone needs to do is, when it checks the POP, anything NOT there should be removed locally. I think you are correct on POP; the phone will poll the mx (mail exchanger) and the mx will pass off the messages to the phone. The phone then keeps ALL of that unitl you manually delete it.
    If, say, I remove a message from the mx, I would like the phone, when next polls, to see that that particular message isn't on the server anymore and remove it locally.
    Perhaps it's just me but if I delete the message on the mx itself, via my ISP's webmail interface, I really don't want to have to remove it again from my phone.
    thxs!
    cheers
    rOot

  • How to make the cost center or WBS field optional for Vendor/customer line?

    Dear experts:
    Does anyone has the experience of releasing WBS or cost center fields to be optional for the customer or vendor line item?
    I've tested in system, neither the field status control in GL account master data nor the FSG in posting key worked, I can't let the WBS field to display in the screen and ready for input.
    So my conclusion is that the FSG control in  not completely effective for customer/vendor line, it there any other method to let WBS to be optional in custer/vendor line items?
    Our purpose for changing that is that we're using joint venture accounting, we need to let users to input a cost object for system to derive joint venture information. please do not suggest deriving JV information using other methods, because we're dealing with a special case, i.g.  in a cross-company document, only a customer/vendor line in our company, so it's impossible to split JV information from offset lines, anyway, please help me out directly with my issue.

    Hi, Lu:
    If I understand your question correctly, you want to modify the FSG of recociliation account of Vendor/Customer to make sure Cost Center/WBS field display in transaction F-22/F-43 for example, right?
    I am not sure whether it is possible, I also tried in ECC6.0 but failed to show these two fields. And I think that doesn't make sense to assign CO object to AP/AR reconciliation account, but assign it to Revenue/Expense account in following line items.
    And You can use New General Ledger functionality Document Splitting to derive corresponding CO object information to Reconciliation Account line item, but it is enabled only in General Ledger level, not in subledger level.
    If you find any other meaningful solution, please also share with us.
    Thanks & BR, Lawrence

  • I have created PDF from hardcopy by using my scanner. After I run OCR option for my PDF by using Acrobat Pro 9. But "Text-to-speech" functionality of the PDF says that an error message comes up that says the page is empty when I turns on the read out loud

    I have created PDF from hardcopy by using my scanner. After I run OCR option for my PDF by using Acrobat Pro 9. But "Text-to-speech" functionality of the PDF says that an error message comes up that says the page is empty when I turns on the read out loud option in Acrobat. Kindly help me to sortout this problems?

    So I tried generating the same PDFs on two other computers that have Acrobat 9 Pro.  Results were reproduced.  The verdict is:
    - complex PDF files (that is, containing cross-references, tables of contents, and bookmarks) generated by Acrobat 9.x Pro are roughly 2-5x larger than the identical file generated with Acrobat 8.x Pro.
    - different PDF conversion settings make a negligable difference (less than 10% rather than 70-80%).
    - using the "Reduce File Size" or "Optimize PDF" option cuts the file size roughly in half, almost always resulting in a "image downsampling mask" warning message, which requires acknowledgement (that is a problem for batch processing or automation).
    - adding an Acrobat watermark to the file cuts the file size roughly in half.
    - just using Save As to another filename has no effect on file size.
    - generating the PDF in Acrobat 9 with links but no PDF bookmarks still results in the inflated file size.
    - generating the PDF in Acrobat 9 without any links or bookmarks results in approximately the same file size as the Acrobat 8 PDF with full links and bookmarks.
    It appears that Acrobat 9's manner of adding links is what's bloating  the files, and in my case it's probably not related to images or image resolution/print quality.  It's a shame, because Acrobat 9 seems to have made some  improvements to the Review Tracker interface, and a few other bells and  whistles which I haven't really gotten around to exporing yet.  But  unless I find a way to keep my links and the PDF file sizes comparable to what I was  getting with Acrobat 8 Pro, it looks like I'm going to stay with Acrobat 8.

  • The credit card info on the account has changed but for some reason there is no option for me to make the changes.  In addition, cloud has stopped working and all other programs that need to be updated cannot be.

    the credit card info on the account has changed but for some reason there is no option for me to make the changes.  In addition, cloud has stopped working and all other programs that need to be updated cannot be??

    Make sure that EVERY DETAIL is the same in every place you enter your information
    -right down to how you spell and punctuate the parts of your name and address
    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -Credit card https://helpx.adobe.com/utilities/credit-card.html
    -email address https://forums.adobe.com/thread/1446019
    -http://helpx.adobe.com/x-productkb/global/didn-t-receive-expected-email.html

  • Providing Calender option for dates in Leave Request form in ESS Portal

    Hello All,
    Can anyone tell me how to get the calender option for the From date and To date fields in the craete leave request iview in ESS ?
    In the backend R/3 transaction, we are able to see the calender option. But it is not visible in the portal.
    Thanks for your help...
    Regards,
    Bindu

    Go to:
    IMG > Personnel Management > Employee Self-Service (Web Dynpro ABAP) > Service-Specific Settings > Working Time > Leave Request > Processing Processes > Define Processing Processes for Each Rule Group
    Select your Rule Group
    Under Record Partial-Day Absences in   you have three options: Hours and Clock Times / Hours / Clock Times
    You should select Hours and save the record.
    With this, you will only have the duration and clock times will not be displayed.
    Regards,
    Harshal

  • Calibre type function in organizing my scanned pdf books and make it functional for index

    After scanning books and articles into pdf digital format whats next? Need to make it functional. Index books and able to use it like a library function.
    Medical info - type in words and search the library of digital files? How is it done.

    Hi Titonull,
    You may check this video to create bookmarks: http://tv.adobe.com/watch/acrobat-x-tips-tricks/how-to-add-pdf-bookmarks-to-a-document/
    Also you may check other video tutorial for Acrobat: Acrobat X Tips & Tricks | Adobe TV
    Regards,
    Ajlan Huda.

  • How to make Add to Favorites Option for website?

    Please Advice how to make Add to Favorites Option for the
    Website.
    Appreciated
    Thank You

    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=12&catid=189&threadid =1191543&highlight_key=y&keyword1=favorites

  • Meeting Requests - sending multiple options for a meeting time / or / group voting option

    Good day,
    As a manager of three divisions in my company, and with frequent external meetings with suppliers, I often face a challenge when proposing meeting times - with busy shedules, I like to always propose 2 or 3 availabilities in my schedule for the invitees
    to select from.
    However, I find that often, this is a slow process that seems like it could be improved - is there a way to send a meeting invite with a 'multiple choice' option for meeting time?
    As a linked question to this, is there a way to use the voting option for a group to select from a list of options their preferred meeting times?
    Many thanks for any ideas or guidance,
    Derek Robson
    Senior Manager,
    Procurement, Facilities, and Security
    Network International, Dubai, UAE

    Hi,
    Outlook doesn't have the exactly same build-in feature as your request. However, there's a workaround which can create a Pick-a-Meeting Request.
    Please refer to this link by our MVP, Diane Poremsky:
    http://www.slipstick.com/outlook/calendar/create-a-pick-a-meeting-request/
    I hope this helps.
    Regards,
    Melon Chen
    TechNet Community Support

Maybe you are looking for

  • Free Goods in Third Party

    Hi.. Please send me configuration steps of Free Goods in Third Party.. Thanks in Advance Shriniwas

  • Transform an Edge .oam file in Muse

    This for when you right-click on a .oam file in Edge. I dropped in two additional options of Transform and Poster Image-:

  • Ap_vendor_pub_pkg.update_vendor_site API is not updating a field

    Hello I want to update the Calculate Tax field on the supplier site level. I am using the ap_vendor_pub_pkg.update_vendor_site API to update the ap_supplier_sites_all.auto_tax_calc_flag field. But the API does not update the field. I want to change t

  • SQL Express with the WDK DTM?

    With MSDE 2000 you are limited to 8 machines and it is recommended to use SQL Server if you are planning on have more than 8 machines in a machine pool.  Since SQL 2005 Express does not have the workload governor, would it be a valid substitution for

  • Updated my ipod 4g and none of my apps open

    all my apps are not opening. they flash like they are going to open, but then it shuts down. don't know what to do! I need certain apps for classes! HELP!