What is syntactic sugar?

This is a recommends products dialog
Top Suggestions
Starting at
View All >
Language
French
English
ไทย
German
繁體中文
Country
Hi
All
Sign In / Create Account
language Selector,${0} is Selected
Register & Shop at Lenovo Pro
Register at Education Store

Pro Tier Benefits

• Save up to an extra 3% on Think everyday pricing
• Spend HK$78,000, advance to Plus Tier with increased benefits

Plus Tier Benefits

• Save up to an extra 5% on Think everyday pricing
• Spend HK$120,000 advance for free to Elite Tier with increased benefits
• Take advantage of flexible payment options with TruScale Device as a Service.

Elite Tier Benefits

• Save up to an extra 8% on Think everyday pricing
• Take advantage of flexible payment options with
TruScale Device as a Service.
Reseller Benefits
• Access to Lenovo's full product portfolio
• Configure and Purchase at prices better than Lenovo.com
View All Details >
more to reach
PRO Plus
PRO Elite
Congratulations, you have reached Elite Status!
Pro for Business
Delete icon Remove icon Add icon Reload icon
TEMPORARILY UNAVAILABLE
DISCONTINUED
Temporary Unavailable
Cooming Soon!
. Additional units will be charged at the non-eCoupon price. Purchase additional now
We're sorry, the maximum quantity you are able to buy at this amazing eCoupon price is
Sign in or Create an Account to Save Your Cart!
Sign in or Create an Account to Join Rewards
View Cart
Wow, your cart is empty!
Remove
item(s) in cart
Fill it in with great deals
Some items in your cart are no longer available. Please visit cart for more details.
has been deleted
Please review your cart as items have changed.
of
Contains Add-ons
Proceed to Checkout
Yes
No
Popular Searches
What are you looking for today ?
Trending
Recent Searches
Hamburger Menu
{"arrowColor":"#ffffff","backgroundColor":"#285d50","divideColor":"","sideMsg":"","data":[{"pcInfo":"","mAndTabInfo":"","bannerInfo":{"t_id":"Pageb7f2e1ff-3557-49a5-94a2-7c82c8dee25b","language":{"zh_hk":"%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%3Cstrong%3ELenovo%20Pro%20%E4%BC%81%E6%A5%AD%E5%B0%88%E4%BA%AB%E9%AB%98%E9%81%94%208%20%E6%8A%98%E8%B3%BC%E7%89%A9%E5%84%AA%E6%83%A0%3C%2Fstrong%3E%26nbsp%3B%7C%20%E7%99%BB%E8%A8%98%E5%8D%B3%E7%8D%B2%E9%AB%98%E9%81%94%246%2C000%E8%BF%8E%E6%96%B0%E6%8A%98%E6%89%A3%20%2B%20%E5%85%8D%E8%B2%BB%E7%A6%AE%E7%89%A9%EF%BC%81%3C%2Fspan%3E%3C%2Fp%3E%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%E8%87%B4%E9%9B%BB%26nbsp%3B%3Ca%20href%3D%22tel%3A25930388%22%20style%3D%22color%3A%20rgb(255%2C%20192%2C%200)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20192%2C%200)%3B%22%3E%3Cstrong%3E2593%200388%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%26nbsp%3B%E8%A7%A3%E9%8E%96%E5%84%AA%E6%83%A0%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3C%2Fspan%3E%3Ca%20href%3D%22%2Fbusiness%2Fbenefits%2F%3FipromoID%3Dhellobar_01_lpro_learn%22%20target%3D%22_blank%22%20textvalue%3D%22%E7%9E%AD%E8%A7%A3%E6%9B%B4%E5%A4%9A%22%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%3Cstrong%3E%E7%9E%AD%E8%A7%A3%E6%9B%B4%E5%A4%9A%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fp%3E%3Cp%3E%3Cbr%2F%3E%3C%2Fp%3E","en":"","en_hk":"%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%3Cstrong%3ELenovo%20Pro%20Business%20Offer%2020%25%20OFF%3C%2Fstrong%3E%26nbsp%3B%7C%20Join%20us%20to%20get%20up%20to%20%246%2C000%20Welcome%20Discount%20%2B%20Free%20Gift!%26nbsp%3B%3C%2Fspan%3E%3C%2Fp%3E%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Ca%20href%3D%22tel%3A25930388%22%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20192%2C%200)%3B%22%3E%3Cstrong%3ECall%202593%200388%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%3Cspan%20style%3D%22font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%3Cstrong%3E%3Cspan%20style%3D%22font-family%3A%20Montserrat%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2Fspan%3E%3C%2Fstrong%3E%26nbsp%3B%3C%2Fspan%3E%3Ca%20href%3D%22%2Fbusiness%2Fbenefits%2F%3FipromoID%3Dhellobar_01_lpro_learn%22%20target%3D%22_blank%22%20textvalue%3D%22Learn%20More%22%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%3Cstrong%3ELearn%20More%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fp%3E%3Cp%3E%3Cbr%2F%3E%3C%2Fp%3E","zh":""},"id":"Pageb7f2e1ff-3557-49a5-94a2-7c82c8dee25b"},"gInfo":""},{"pcInfo":"","mAndTabInfo":"","bannerInfo":{"t_id":"Pagecfa8504b-eb77-4339-9085-bcf23eb1a764","language":{"zh_hk":"%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3ELenovo%20%E6%95%99%E8%82%B2%E5%84%AA%E6%83%A02023%26nbsp%3B%7C%20%E5%AD%B8%E7%94%9F%E5%8F%8A%E6%95%99%E8%81%B7%E5%93%A1%E5%8F%AF%E4%BA%AB%E4%BD%8E%E8%87%B36%E6%8A%98%E5%84%AA%E6%83%A0%2C%20%E4%BD%BF%E7%94%A8%20SheerID%E5%BF%AB%E9%80%9F%E8%AA%8D%E8%A8%BC%26nbsp%3B%3C%2Fspan%3E%3C%2Fp%3E%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%E8%87%B4%E9%9B%BB%26nbsp%3B%3Ca%20href%3D%22tel%3A25930388%22%20style%3D%22color%3A%20rgb(255%2C%20192%2C%200)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20192%2C%200)%3B%22%3E%3Cstrong%3E2593%200388%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%26nbsp%3B%E8%A7%A3%E9%8E%96%E5%84%AA%E6%83%A0%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3C%2Fspan%3E%3Ca%20href%3D%22%2Fd%2Fschool-from-home%2F%3FipromoID%3Dhellobar_02_edu%22%20target%3D%22_blank%22%20textvalue%3D%22%E7%AB%8B%E5%8D%B3%E8%B3%BC%E8%B2%B7%22%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%3Cstrong%3E%E7%AB%8B%E5%8D%B3%E8%B3%BC%E8%B2%B7%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fp%3E%3Cp%3E%3Cbr%2F%3E%3C%2Fp%3E","en":"","en_hk":"%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20Montserrat%3B%22%3E%3Cstrong%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%3C%2Fspan%3EBack%20to%20School%3C%2Fstrong%3E%26nbsp%3B%7C%20Join%20Lenovo%20Education%20to%20enjoy%20up%20to%2040%25%20Discount%20for%20students%20%26amp%3B%20teachers.%20SheerID%20is%20applicable.%3C%2Fspan%3E%3C%2Fp%3E%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20192%2C%200)%3B%20font-family%3A%20Montserrat%3B%22%3E%26nbsp%3B%3Ca%20href%3D%22tel%3A25930388%22%20style%3D%22color%3A%20rgb(255%2C%20192%2C%200)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cstrong%3ECall%202593%200388%3C%2Fstrong%3E%3C%2Fa%3E%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3C%2Fspan%3E%3Ca%20href%3D%22%2Fd%2Fschool-from-home%2F%3FipromoID%3Dhellobar_02_edu%22%20target%3D%22_self%22%20textvalue%3D%22Shop%20now%22%20style%3D%22text-decoration%3A%20underline%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20Montserrat%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20Montserrat%3B%22%3E%3Cstrong%3EShop%20now%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fp%3E","zh":""},"id":"Pagecfa8504b-eb77-4339-9085-bcf23eb1a764"},"gInfo":""},{"pcInfo":"","mAndTabInfo":"","bannerInfo":{"t_id":"Pagef53f1aa2-3b1d-4357-a57e-850230463f26","language":{"zh_hk":"%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%3Cstrong%3EPC%E4%BD%8E%E8%87%B37%E6%8A%98%3C%2Fstrong%3E%26nbsp%3B%7C%20%E7%B2%BE%E9%81%B8%E5%9E%8B%E8%99%9F%E7%8F%BE%E8%B2%A8%E7%99%BC%E5%94%AE%2C%20%E6%9C%80%E5%BF%AB3%E6%97%A5%E9%80%81%E8%B2%A8%EF%BC%81%E6%89%80%E6%9C%89%E8%A8%82%E5%96%AE%E5%9D%87%E4%BA%AB%E5%85%8D%E9%81%8B%E8%B2%BB%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2Fspan%3E%3C%2Fp%3E%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%E8%87%B4%E9%9B%BB%26nbsp%3B%3Ca%20href%3D%22tel%3A25930388%22%20style%3D%22color%3A%20rgb(255%2C%20192%2C%200)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20192%2C%200)%3B%22%3E%3Cstrong%3E2593%200388%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%26nbsp%3B%E8%A7%A3%E9%8E%96%E5%84%AA%E6%83%A0%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3C%2Fspan%3E%3Ca%20href%3D%22%2Fd%2Fdeals%2Fexpress%2F%3FipromoID%3Dhellobar_03_quickship%22%20target%3D%22_blank%22%20textvalue%3D%22%E7%AB%8B%E5%8D%B3%E8%B3%BC%E8%B2%B7%22%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%3Cstrong%3E%E7%AB%8B%E5%8D%B3%E8%B3%BC%E8%B2%B7%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fp%3E%3Cp%3E%3Cbr%2F%3E%3C%2Fp%3E","en":"","en_hk":"%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%3Cstrong%3EPC%20Up%20to%2030%25%20off%3C%2Fstrong%3E%26nbsp%3B%7C%20Selected%20models%20are%20on%20sale%20in%20stock%2C%20and%20the%20fastest%20delivery%20is%203%20days!%20Free%20shipping%20site-wide%2C%20no%20minimum%20spend.%3C%2Fspan%3E%3C%2Fp%3E%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%26nbsp%3B%3Ca%20href%3D%22tel%3A25930388%22%20style%3D%22color%3A%20rgb(255%2C%20192%2C%200)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22font-family%3A%20Montserrat%3B%20color%3A%20rgb(255%2C%20192%2C%200)%3B%22%3E%3Cstrong%3ECall%202593%200388%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3C%2Fspan%3E%3Ca%20href%3D%22%2Fd%2Fdeals%2Fexpress%2F%3FipromoID%3Dhellobar_03_quickship%22%20target%3D%22_blank%22%20textvalue%3D%22Shop%20now%22%20style%3D%22text-decoration%3A%20underline%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%3Cstrong%3EShop%20now%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fp%3E%3Cp%3E%3Cbr%2F%3E%3C%2Fp%3E","zh":""},"id":"Pagef53f1aa2-3b1d-4357-a57e-850230463f26"},"gInfo":""},{"pcInfo":"","mAndTabInfo":"","bannerInfo":{"t_id":"Page40a4db87-5fc2-477e-aa8e-51281582d62c","language":{"zh_hk":"%3Cp%3E%3Cspan%20style%3D%22text-wrap%3A%20wrap%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%E6%9C%89%E7%96%91%E5%95%8F%E5%97%8E%EF%BC%9F%20%E5%A6%82%E9%9C%80%E6%88%91%E5%80%91%E7%9A%84%E5%B0%88%E5%AE%B6%E5%BB%BA%E8%AD%B0%EF%BC%8C%E8%AB%8B%E8%87%B4%E9%9B%BB%26nbsp%3B%3Ca%20href%3D%22tel%3A25930388%22%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20192%2C%200)%3B%22%3E%3Cstrong%3E2593%200388%3C%2Fstrong%3E%3C%2Fspan%3E%3Cstrong%3E%E6%88%96%E9%BB%9E%E6%93%8A%E3%80%8C%E8%81%8A%E5%A4%A9%E3%80%8D%EF%BC%81%3C%2Fstrong%3E%3C%2Fa%3E%3C%2Fspan%3E%3Cspan%20style%3D%22text-wrap%3A%20wrap%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%26nbsp%3B%26nbsp%3B%3C%2Fspan%3E%3Ca%20target%3D%22_self%22%20class%3D%22live_chat_daily%22%20style%3D%22text-wrap%3A%20wrap%3B%20text-decoration-line%3A%20underline%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%3Cstrong%3E%E8%81%AF%E7%B5%A1%E6%88%91%E5%80%91%3C%2Fstrong%3E%3C%2Fa%3E%3C%2Fp%3E","en":"","en_hk":"%3Cp%3E%3Cspan%20style%3D%22text-wrap%3A%20wrap%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3ENeed%20Help%3F%26nbsp%3B%26nbsp%3B%3Ca%20href%3D%22tel%3A25930388%22%20style%3D%22color%3A%20rgb(255%2C%20192%2C%200)%3B%22%3E%3Cstrong%3ECall%202593%200388%3C%2Fstrong%3E%3C%2Fa%3E%26nbsp%3B%26nbsp%3Bor%20Chat%20with%20us%20now!%3C%2Fspan%3E%3Cspan%20style%3D%22text-wrap%3A%20wrap%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%26nbsp%3B%26nbsp%3B%3C%2Fspan%3E%3Ca%20target%3D%22_self%22%20class%3D%22live_chat_daily%22%20style%3D%22text-wrap%3A%20wrap%3B%20text-decoration-line%3A%20underline%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%3Cstrong%3EContact%20Us%3C%2Fstrong%3E%3C%2Fa%3E%3C%2Fp%3E","zh":""},"id":"Page40a4db87-5fc2-477e-aa8e-51281582d62c"},"gInfo":""},{"pcInfo":"","mAndTabInfo":"","bannerInfo":{"t_id":"Page4daeae9a-96ce-41de-bb12-39e5cc32e16a","language":{"zh_hk":"%3Cp%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%E5%B9%B4%E5%BA%A6%E6%9C%80%E5%BC%B711.11%E5%84%AA%E6%83%A0%20%7C%20%E6%89%8B%E6%8F%90%E9%9B%BB%E8%85%A6%E6%BF%80%E6%B8%9B%E8%87%B3%20%241%2C798!%20%E8%B3%BC%E7%89%A9%E9%80%81%24400%E8%B6%85%E5%B8%82%E7%A6%AE%E5%88%B8!%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2Fspan%3E%3Ca%20href%3D%22%2Fd%2Fdeals%2Fspecial-offer%2F%22%20target%3D%22_self%22%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%3Cstrong%3E11.11%E7%B2%BE%E9%81%B8%E5%9E%8B%E8%99%9F%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fp%3E","en":"%3Cp%3E%3Cspan%20style%3D%22text-wrap%3A%20wrap%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3EMega%20Clearance%20Sale%20%7C%20Laptops%20starts%20at%20%241%2C998%26nbsp%3B%20%26nbsp%3B%20Up%20to%2040%25%20off%20for%20Gaming%20PCs%2FYoga%20PCs%26nbsp%3B%20%26nbsp%3B%20Free%20shipping%20on%20any%20orders%2C%20as%20fast%20as%202%20days%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2Fspan%3E%3Ca%20href%3D%22https%3A%2F%2Fadmin.lenovo.com%2Fd%2Fdeals%2Fspecial-offer%2F%3FipromoID%3Dhellobar_05%22%20target%3D%22_blank%22%20title%3D%22Mega%20Clearance%22%20style%3D%22text-wrap%3A%20wrap%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%3Cstrong%3EMega%20Clearance%3C%2Fstrong%3E%3C%2Fa%3E%3C%2Fp%3E","en_hk":"%3Cp%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E11.11%20Crazy%20Deals%20%7C%20Laptop%20Starting%20at%20%241798!%20Get%20%24400%20supermarket%20vouchers!%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2Fspan%3E%3Ca%20href%3D%22%2Fd%2Fdeals%2Fspecial-offer%2F%22%20target%3D%22_self%22%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%3Cstrong%3E11.11%20Deals%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fp%3E","zh":"%3Cp%3E%3Cspan%20style%3D%22text-wrap%3A%20wrap%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%E7%A7%8B%E5%AD%A3%E9%96%8B%E5%80%89%E5%A4%A7%E6%BF%80%E8%B3%9E%7C%20%E9%9B%BB%E8%85%A6%E4%BD%8E%E8%87%B3%241%2C998%E8%B5%B7%26nbsp%3B%20%E9%9B%BB%E7%AB%B6%E9%9B%BB%E8%85%A6%2FYoga%E9%9B%BB%E8%85%A6%E4%BD%8E%E8%87%B36%E6%8A%98%20%E4%BB%BB%E4%BD%95%E8%A8%82%E5%96%AE%E5%85%8D%E8%B2%BB%E9%80%81%E8%B2%A8%20%E6%9C%80%E5%BF%AB2%E6%97%A5%E9%80%81%E5%88%B0%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3C%2Fspan%3E%3Ca%20href%3D%22https%3A%2F%2Fadmin.lenovo.com%2Fd%2Fnotebook-recommendation%2F%3FipromoID%3Dhellobar_05%22%20target%3D%22_blank%22%20title%3D%22%E5%8D%B3%E6%90%B6%E7%A7%8B%E5%AD%A3%E9%96%8B%E5%80%89%E5%84%AA%E6%83%A0%22%20style%3D%22text-wrap%3A%20wrap%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%3Cstrong%3E%E5%8D%B3%E6%90%B6%E7%A7%8B%E5%AD%A3%E9%96%8B%E5%80%89%E5%84%AA%E6%83%A0%3C%2Fstrong%3E%3C%2Fa%3E%3Cspan%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3C%2Fspan%3E%3C%2Fp%3E"},"id":"Page4daeae9a-96ce-41de-bb12-39e5cc32e16a"},"gInfo":""}],"autoRun":true,"isShowDivide":true}
11.11 Super Sale
Sale Extended for 1 Week! Hurry Last Chance! Shop NOW!
Days
Hours
Minutes
Seconds
11.11 Super Sale
Sale Extended for 1 Week! Hurry Last Chance! Shop NOW!
Days
Hours
Minutes
Seconds


What is syntactic sugar?

Syntactic sugar refers to certain language features in programming that make the code easier to read or write. It's like adding a bit of sweetness to your code syntax to make it more pleasant to work with.

Does syntactic sugar change how code works?

No, syntactic sugar doesn't change the underlying functionality of the code. It's more about improving the readability and expressiveness of the code without altering its behavior.

Why use syntactic sugar?

Using syntactic sugar can make your code more concise and easier to understand. It can also reduce the chance of making errors, as the sugar often represents common patterns that are prone to mistakes.

Does every programming language have syntactic sugar?

Not necessarily. Syntactic sugar varies from language to language. Some languages focus more on providing these readability-enhancing features, while others prefer minimalism.

What about function calls? Can they have syntactic sugar too?

Absolutely, some programming languages allow you to omit parentheses when calling a function with no arguments. For instance, in Python, you can write print instead of print().

Does syntactic sugar always make code shorter?

Not always. While syntactic sugar often aims to make code more concise, it's not the primary goal. The main aim is to improve readability and expressiveness.

Is syntactic sugar a form of abstraction?

Definitely, syntactic sugar is a way of abstracting complex operations or patterns into simpler and more intuitive syntax. It helps programmers work at a higher level of abstraction.

What does operator overloading as syntactic sugar mean?

Certainly, operator overloading is a form of syntactic sugar that allows you to define custom behaviors for operators like +, -, or * when applied to objects of your own classes.

Is syntactic sugar only for high-level languages?

No, both high-level and low-level languages can have syntactic sugar. Even in languages like C, you have shorthand notations for common operations.

Can I create my own syntactic sugar?

In some programming languages, yes. You can create custom macros or use metaprogramming techniques to introduce syntactic sugar specific to your project.

What's the trade-off between syntactic sugar and explicitness?

Syntactic sugar can enhance code readability, but it might obscure the explicit steps of a process. Sometimes, explicitness is crucial for understanding complex algorithms.

Does syntactic sugar make code run faster?

No, syntactic sugar doesn't affect the performance of your code. It's purely about making the code more human-friendly, not optimizing execution speed.

Is syntactic sugar a standardized concept?

While the term "syntactic sugar" is widely used, its specific applications can vary from language to language. It's more of a conceptual idea than a strict standard.

How does syntactic sugar relate to readability?

Syntactic sugar is closely tied to readability. By providing more intuitive and natural ways to express concepts, it helps programmers quickly grasp the purpose and flow of code.

Would I say syntactic sugar is like language extensions?

Yes, in a way. Language extensions can introduce new syntax or features, which can be thought of as a more advanced form of syntactic sugar.

Are comments still necessary with syntactic sugar?

Yes, comments are still important. While syntactic sugar can make code clearer, it might not explain complex algorithms or design decisions. Comments provide that extra context.

Can integrated development environments (IDEs) handle syntactic sugar?

Yes, modern IDEs are equipped to recognize and assist with syntactic sugar. They often offer auto-completion and suggestions for using these features.

Does syntactic sugar influence coding styles?

Definitely. Different programmers might use or avoid certain syntactic sugar features based on their coding style or team conventions.

How does syntactic sugar relate to maintainability?

Syntactic sugar can contribute to code maintainability by making the codebase more understandable. Clearer code is easier to maintain and modify over time.

Is method chaining a type of syntactic sugar?

Yes, method chaining, where you chain multiple method calls together, is a form of syntactic sugar that helps streamline code by reducing the need for temporary variables.

Does syntactic sugar apply only to statements?

No, it can also apply to expressions. For example, the Elvis operator (?:) in some languages is syntactic sugar for a compact conditional expression.

Can syntactic sugar differ among versions of the same language?

Yes, programming languages evolve, and new versions might introduce or modify syntactic sugar to enhance the language's expressiveness or ease of use.

Would I say syntactic sugar makes code more intuitive?

Absolutely. Syntactic sugar often mirrors how humans naturally think about certain operations, making the code more intuitive and easier to understand.

How does syntactic sugar impact debugging?

Syntactic sugar typically doesn't have a significant impact on debugging. Bugs usually stem from logical errors, and syntactic sugar doesn't alter the logic itself.

Are there syntactic sugar plugins or libraries?

Yes, in some languages, you can use libraries or plugins that provide additional syntactic sugar to simplify common tasks or extend the language's capabilities.

Does syntactic sugar change over time?

Yes, as programming languages evolve, new features and syntactic sugar might be introduced while older, less intuitive syntax might be deprecated.

Can I use syntactic sugar without knowing the underlying code?

You can use syntactic sugar without necessarily understanding the underlying implementation, but having a solid grasp of the basics is recommended for effective coding.

Is syntactic sugar the same as a design pattern?

No, they're different concepts. Design patterns are higher-level templates for solving common coding problems, while syntactic sugar focuses on making existing code constructs more readable.

Do different programming paradigms use different syntactic sugar?

Yes, different programming paradigms, like object-oriented, functional, or procedural, might introduce unique syntactic sugar to cater to their specific approaches.

Can syntactic sugar help with learning a new language?

Definitely. When a new programming language employs intuitive syntactic sugar, it can help programmers transition more smoothly and understand the language faster.

Is syntactic sugar limited to built-in language features?

No, you can create your own syntactic sugar by using macros, templates, or other language extension mechanisms provided by the programming language.

{"pageComponentDataId":"537198bf07954-401a-b47a-087e257f1d72","isAssociatedRelease":"true","pageComponentDataLangCode":"en_hk","configData":{"jumpType":"currentTab","headlineColor":"black","displayNumber":"","styleMode":"vertical","miniCardHoMode":"2","headline":"","products":[{"number":{"t_id":"len101t0102","language":{"zh_hk":"len101t0102","en":"","en_hk":"len101t0102","zh":""},"id":"Page497e178f-e4db-4b5b-b1a5-ec4687329efb"}},{"number":{"t_id":"len101t0104","language":{"zh_hk":"len101t0104","en":"","en_hk":"len101t0104","zh":""},"id":"Page9145835b-830f-4dee-9765-5a8ed87b670f"}},{"number":{"t_id":"len101t0081","language":{"zh_hk":"len101t0081","en":"","en_hk":"len101t0081","zh":""},"id":"Pagebb4de9bf-4262-41eb-9982-04bc0777035c"}},{"number":{"t_id":"len101g0036","language":{"zh_hk":"len101g0036","en":"","en_hk":"len101g0036","zh":""},"id":"Paged7259f59-5586-49c9-8b68-20a93f7b4c51"}}]},"urlPrefix":"AAAAAAALAAAG","needGetLatestTransDataKey":"needGetLatestTransDataValue","title":"glossary-right-blue-boxes-fragment","pageId":"82171833-6325-4d09-947e-5979c9876a90","urlEdit":0,"uri":"/FragmentDirectory/glossary/glossary-right-blue-boxes-fragment.frag","pageComponentId":"537198bf07954-401a-b47a-087e257f1d72","tplId":"c7389f9a-59c0-4c34-a9e1-f1c090c6ab86","pageComponentUuid":"537198bf07954-401a-b47a-087e257f1d72","targetUser":"0"}
coming coming
Starting at
List Price
Est Value
Web Price:
List Price
Est Value (Estimated Value)
List Price is Lenovo’s estimate of product value based on the industry data, including the prices at which first and third-party retailers and etailers have offered or valued the same or comparable products. Third-party reseller data may not be based on actual sales.
Estimated value is Lenovo’s estimate of product value based on industry data, including the prices at which Lenovo and/or third-party retailers and e-tailers have offered or valued the same or comparable products. Third-party data may not be based on actual sales.
Learn More
See More
See Less
View {0} Model
View {0} Models
shipping.options.for.{0}
Part Number:
Features
See More
See Less
compare
Added!
Great choice!
You may compare up to 4 products per product category (laptops, desktops, etc). Please de-select one to add another.
View Your Comparisons
Add To Cart
Add To Cart
We're sorry,
Products are temporarily unavailable.
Continue Shopping
Learn More
Coming Soon
Featured Product
Featured Products
Oops! No results found. Visit the categories above to find your product.
Save
open in new tab
© 2024 Lenovo. All rights reserved.
© {year} Lenovo. All rights reserved.
Compare  ()
x