Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 101559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:47:39+00:00 2026-05-11T00:47:39+00:00

Syntactic sugar for properties for example in C#: private int x; public int X{

  • 0

Syntactic sugar for properties for example in C#:

private int x;  public int X{     get { return x; }     set { x = value; } } 

or simply

 public int X{ get; set; } 

I am missing verbatim strings in java… @’C:\My Documents\’ instead of ‘C:\\My Documents\\’

Do you agree Java needs more ‘sugar’? Any one knows is there is sugar coming in next Java versions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T00:47:40+00:00Added an answer on May 11, 2026 at 12:47 am

    While I don’t necessarily agree with Java’s philosophy, I think that adding lots of syntactic sugar to Java would go against its philosophy. Java is supposed to be a very simple, easy to reason about language with few constructs, kind of a lowest common denominator lingua franca in the programming community. It was largely a reaction to the complexity of C++. There is supposed to be very little ‘magic’ in it, beyond what is needed (garbage collection, mostly) to make it a memory-safe language.

    If you want more sugar, etc. in a reasonably high-performance, statically typed language, I would say that Java is just the wrong language for you. You’re probably better off just using C#, or maybe D.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is the WebGetAttribute just syntactic sugar for the WebInvokeAttribute with Method = GET? Or
For some syntactic sugar I want to return a reference to this , but
As I understand it, params is just syntactic sugar that under the hood simply
Is there some internal difference between the C# syntactic sugar way of making properties:
The using(...) statement is syntactic sugar for try{} finally {}. But if I then
I need to add some lightweight syntactic sugar to JavaScript source code, and process
What are all the instances of syntactic sugar in Scala? They are hard to
I would like to add some syntactic sugar to a class by overloading ()
The using keyword has three disparate meanings: type/namespace aliasing namespace import syntactic sugar for
Wouldn't it make sense if p->m was just syntactic sugar for (*p).m ? Essentially,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.