Top "Nested" questions

This tag relates to any of various nested entities or operations in programming.

How to re-raise an exception in nested try/except blocks?

I know that if I want to re-raise an exception, I simple use raise without arguments in the respective except …

python exception nested raise
namespaces for enum types - best practices

Often, one needs several enumerated types together. Sometimes, one has a name clash. Two solutions to this come to mind: …

c++ enums scope nested
Nested function in C

Can we have a nested function in C? What is the use of nested functions? If they exist in C …

c function nested
Javascript: how to dynamically create nested objects using object names given by an array

I hope someone can help me with this Javascript. I have an Object called "Settings" and I would like to …

javascript arrays object dynamic nested
How to use dot notation for dict in python?

I'm very new to python and I wish I could do . notation to access values of a dict. Lets say …

python dictionary nested
Nested functions in Java

Are there any extensions for the Java programming language that make it possible to create nested functions? There are many …

java function nested
LESS CSS nesting classes

I'm using LESS to improve my CSS and am trying to nest a class within a class. There's a fairly …

css nested less
Understanding nested list comprehension

I want to understand nested list comprehension. Below, I listed a list comprehension expression and their for loop equivalent. I …

python nested list-comprehension
Replacing nested if statements

This is related to a chapter from beautiful code. And in that chapter I read about the nested ifs. The …

algorithm design-patterns nested
Nested list comprehension with two lists

I understand how the simple list comprehension works eg.: [x*2 for x in range(5)] # returns [0,2,4,6,8] and also I understand how …

python nested list-comprehension